Trait plumcast::MessagePayload [−][src]
pub trait MessagePayload: Sized + Clone + Send + 'static { type Encoder: Encode<Item = Self> + Default + Send + 'static; type Decoder: Decode<Item = Self> + Default + Send + 'static; }
This trait allows the implementations to be used as the payload of broadcasting messages.
Associated Types
type Encoder: Encode<Item = Self> + Default + Send + 'static
Payload encoder.
This is used to serialize payload for transmitting to remote nodes.
type Decoder: Decode<Item = Self> + Default + Send + 'static
Payload decoder.
This is used to deserialize payload from octets received from remote nodes.
Implementations on Foreign Types
impl MessagePayload for Vec<u8>
[src]
impl MessagePayload for Vec<u8>
type Encoder = BytesEncoder<Vec<u8>>
type Decoder = RemainingBytesDecoder
impl MessagePayload for String
[src]
impl MessagePayload for String