pub trait Cacheable {
    // Required methods
    fn to_bytes(&self) -> Vec<u8> ;
    fn from_bytes(bytes: Vec<u8>) -> Result<Self>
       where Self: Sized;
}

Required Methods§

source

fn to_bytes(&self) -> Vec<u8>

source

fn from_bytes(bytes: Vec<u8>) -> Result<Self>where Self: Sized,

Implementors§