pub unsafe trait WireCompatible<T: Message>: Message + Default {
    // Provided method
    fn convert(old: &T) -> Self { ... }
}
Expand description

Denotes that Self is wire compatible with type T.

You should not implement this yourself, instead use the wire_compatible! macro.

Provided Methods§

source

fn convert(old: &T) -> Self

Converts the type T into Self by serializing T and deserializing as Self.

Object Safety§

This trait is not object safe.

Implementors§