Trait apalis::MessageEncodable[][src]

pub trait MessageEncodable {
    fn encode_message(&self) -> Result<Vec<u8, Global>, &'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, Global>, &'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> MessageEncodable for T where
    T: Serialize
[src]

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

Loading content...