Trait ResponseTrait

Source
pub trait ResponseTrait: Send + Debug {
    type OutputText: Clone + Sized;
    type OutputBinary: Clone + Sized;

    // Required methods
    fn text(&self) -> Self::OutputText;
    fn binary(&self) -> Self::OutputBinary;
    fn from(response: &[u8]) -> Self
       where Self: Sized;
}

Required Associated Types§

Required Methods§

Source

fn text(&self) -> Self::OutputText

Source

fn binary(&self) -> Self::OutputBinary

Source

fn from(response: &[u8]) -> Self
where Self: Sized,

Implementors§