[][src]Trait fs_db::EncodeDecode

pub trait EncodeDecode {
    type Value;
    type Error;
    fn encode(value: &Self::Value) -> Result<Vec<u8>, Self::Error>;
fn decode(buff: &[u8]) -> Result<Self::Value, Self::Error>; }

EncodeDecode trait must be implemented for FileStore types

Associated Types

type Value

type Error

Loading content...

Required methods

fn encode(value: &Self::Value) -> Result<Vec<u8>, Self::Error>

fn decode(buff: &[u8]) -> Result<Self::Value, Self::Error>

Loading content...

Implementors

impl<V> EncodeDecode for V where
    V: Serialize + DeserializeOwned + Debug
[src]

Automagic EncodeDecode implementation for serde capable types

type Value = V

type Error = Error

Loading content...