[][src]Trait plumcast::message::MessagePayload

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.

Loading content...

Implementations on Foreign Types

impl MessagePayload for Vec<u8>[src]

impl MessagePayload for String[src]

Loading content...

Implementors

Loading content...