Trait ssh_agent_lib::proto::Blob

source ·
pub trait Blob: Sized {
    // Required methods
    fn to_blob(&self) -> ProtoResult<Vec<u8>>;
    fn from_blob(blob: &[u8]) -> ProtoResult<Self>;
}

Required Methods§

source

fn to_blob(&self) -> ProtoResult<Vec<u8>>

source

fn from_blob(blob: &[u8]) -> ProtoResult<Self>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'a, T: Serialize + Deserialize<'a>> Blob for T