Trait socks5_protocol::sync::FromIO[][src]

pub trait FromIO {
    fn read_from(reader: &mut impl Read) -> Result<Self>
    where
        Self: Sized
;
fn write_to(&self, writer: &mut impl Write) -> Result<()>; }
Expand description

Read Self from io::Read or write Self to io::Write.

Required methods

fn read_from(reader: &mut impl Read) -> Result<Self> where
    Self: Sized
[src]

Expand description

Read Self from io::Read.

fn write_to(&self, writer: &mut impl Write) -> Result<()>[src]

Expand description

Write Self to io::Write.

Loading content...

Implementors

impl FromIO for Address[src]

fn read_from(reader: &mut impl Read) -> Result<Self> where
    Self: Sized
[src]

fn write_to(&self, writer: &mut impl Write) -> Result<()>[src]

impl FromIO for Version[src]

fn read_from(reader: &mut impl Read) -> Result<Self> where
    Self: Sized
[src]

fn write_to(&self, writer: &mut impl Write) -> Result<()>[src]

impl FromIO for AuthRequest[src]

fn read_from(reader: &mut impl Read) -> Result<Self> where
    Self: Sized
[src]

fn write_to(&self, writer: &mut impl Write) -> Result<()>[src]

impl FromIO for AuthResponse[src]

fn read_from(reader: &mut impl Read) -> Result<Self> where
    Self: Sized
[src]

fn write_to(&self, writer: &mut impl Write) -> Result<()>[src]

impl FromIO for CommandRequest[src]

fn read_from(reader: &mut impl Read) -> Result<Self> where
    Self: Sized
[src]

fn write_to(&self, writer: &mut impl Write) -> Result<()>[src]

impl FromIO for CommandResponse[src]

fn read_from(reader: &mut impl Read) -> Result<Self> where
    Self: Sized
[src]

fn write_to(&self, writer: &mut impl Write) -> Result<()>[src]

Loading content...