tcp_request

Trait ResponseTrait

Source
pub trait ResponseTrait {
    type OutputText;
    type OutputBinary;

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

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,

Source

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

Implementors§