Trait mesh_node::message::MeshField

source ·
pub trait MeshField:
    DefaultEncoding<Encoding = Self::Encoding>
    + Send
    + 'static
    + 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

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> MeshField for T
where T: DefaultEncoding + Any + Send + 'static, T::Encoding: FieldEncode<T, Resource> + for<'a> FieldDecode<'a, T, Resource> + Send + Sync,