Trait mesh_protobuf::Protobuf
source · pub trait Protobuf: DefaultEncoding<Encoding = Self::Encoding> + Sized {
type Encoding: MessageEncode<Self, NoResources> + for<'a> MessageDecode<'a, Self, NoResources> + FieldEncode<Self, NoResources> + for<'a> FieldDecode<'a, Self, NoResources>;
}
Expand description
Trait for types that can be encoded and decoded as a protobuf message.
Required Associated Types§
sourcetype Encoding: MessageEncode<Self, NoResources> + for<'a> MessageDecode<'a, Self, NoResources> + FieldEncode<Self, NoResources> + for<'a> FieldDecode<'a, Self, NoResources>
type Encoding: MessageEncode<Self, NoResources> + for<'a> MessageDecode<'a, Self, NoResources> + FieldEncode<Self, NoResources> + for<'a> FieldDecode<'a, Self, NoResources>
The default encoding for Self
.
Object Safety§
This trait is not object safe.