Trait mesh_node::message::MeshPayload
source · pub trait MeshPayload:
DefaultEncoding<Encoding = Self::Encoding>
+ Send
+ 'static
+ 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
Object Safety§
This trait is not object safe.