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]
Self: Sized,
Expand description
Read Self from io::Read.
fn write_to(&self, writer: &mut impl Write) -> Result<()>[src]
Expand description
Write Self to io::Write.
Implementors
impl FromIO for AuthRequest[src]
impl FromIO for AuthRequest[src]impl FromIO for AuthResponse[src]
impl FromIO for AuthResponse[src]impl FromIO for CommandRequest[src]
impl FromIO for CommandRequest[src]