[][src]Trait thingvellir::upstreams::WireSerializer

pub trait WireSerializer<V>: Clone + Send + 'static {
    type Error: Error + Send + 'static;
    fn serialize(&self, value: &V) -> Result<Vec<u8>, Self::Error>;
fn deserialize(&self, buf: &[u8]) -> Result<V, Self::Error>; }

Associated Types

type Error: Error + Send + 'static

Loading content...

Required methods

fn serialize(&self, value: &V) -> Result<Vec<u8>, Self::Error>

fn deserialize(&self, buf: &[u8]) -> Result<V, Self::Error>

Loading content...

Implementors

Loading content...