[][src]Enum gadu::conn::NetStream

pub enum NetStream {
    UnsecuredTcpStream(TcpStream),
    UdsStream(UnixStream),
    SslTcpStream(SslStream<TcpStream>),
    SslMidHandshakeStream(MidHandshakeSslStream<TcpStream>),
    Invalid,
}

Variants

UnsecuredTcpStream(TcpStream)

An unsecured TcpStream.

UdsStream(UnixStream)

Unix domain socket stream

SslTcpStream(SslStream<TcpStream>)

An SSL-secured TcpStream. This is only available when compiled with SSL support.

SslMidHandshakeStream(MidHandshakeSslStream<TcpStream>)Invalid

Methods

impl NetStream[src]

pub fn shutdown(&mut self) -> Result<(), Error>[src]

pub fn read(&mut self, buf: &mut [u8]) -> IoResult<usize>[src]

pub fn write(&mut self, buf: &[u8]) -> IoResult<usize>[src]

pub fn write_all(&mut self, buf: &[u8]) -> IoResult<()>[src]

pub fn flush(&mut self) -> IoResult<()>[src]

Trait Implementations

impl Debug for NetStream[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T