Trait mesh::message::MeshField

source ·
pub trait MeshField:
    Sized
    + DefaultEncoding<Encoding = Self::Encoding>
    + Send
    + 'static {
    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 as DefaultEncoding>::Encoding: FieldEncode<T, Resource> + for<'a> FieldDecode<'a, T, Resource> + Send + Sync,