pub trait MeshPayload: DefaultEncoding<Encoding = Self::Encoding> + Sized {
type Encoding: MessageEncode<Self, Resource> + for<'a> MessageDecode<'a, Self, Resource> + FieldEncode<Self, Resource> + for<'a> FieldDecode<'a, Self, Resource> + Send + Sync;
}
Expand description
Trait for types that can be constructed as a Message
.
This does not include scalar types such as u32
, which are encoded as
non-message types.
Required Associated Types§
type Encoding: MessageEncode<Self, Resource> + for<'a> MessageDecode<'a, Self, Resource> + FieldEncode<Self, Resource> + for<'a> FieldDecode<'a, Self, Resource> + Send + Sync
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.