Trait mesh::payload::Protobuf

source ·
pub trait Protobuf: Sized + DefaultEncoding<Encoding = Self::Encoding> {
    type Encoding: MessageEncode<Self, NoResources> + for<'a> MessageDecode<'a, Self, NoResources> + FieldEncode<Self, NoResources> + for<'a> FieldDecode<'a, Self, NoResources>;
}
Expand description

Trait for types that can be encoded and decoded as a protobuf message.

Required Associated Types§

source

type Encoding: MessageEncode<Self, NoResources> + for<'a> MessageDecode<'a, Self, NoResources> + FieldEncode<Self, NoResources> + for<'a> FieldDecode<'a, Self, NoResources>

The default encoding for Self.

Object Safety§

This trait is not object safe.

Implementors§