tcplane

Trait ResponseTrait

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

    // 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,

Implementations on Foreign Types§

Source§

impl ResponseTrait for String

Source§

impl ResponseTrait for Vec<u8>

Implementors§