mesh_node::message

Trait MeshField

Source
pub trait MeshField: DefaultEncoding<Encoding = Self::Encoding> + Sized {
    type Encoding: FieldEncode<Self, Resource> + for<'a> FieldDecode<'a, Self, Resource> + Send + Sync;
}
Expand description

Trait for types that can be a field in a mesh message, including both scalar types and types that implement MeshPayload.

Required Associated Types§

Source

type Encoding: 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.

Implementors§