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

Payload encoder.

This is used to serialize payload for transmitting to remote nodes.

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 String
[src]

Implementors