Trait apalis_core::MessageEncodable[][src]

pub trait MessageEncodable where
    Self: Sized
{ fn encode_message(&self) -> Result<Vec<u8>, &'static str>; }
Expand description

Message objects that can be encoded to a string to be stored in Storage.

Implemented for all Serialize objects by default by encoding with Msgpack.

Required methods

fn encode_message(&self) -> Result<Vec<u8>, &'static str>[src]

Expand description

Encode the value into a bytes array to be inserted into Storage.

In the default implementation, the object is encoded with Msgpack.

Loading content...

Implementors

impl<T: Serialize> MessageEncodable for T[src]

fn encode_message(&self) -> Result<Vec<u8>, &'static str>[src]

Loading content...