[][src]Enum melib::connections::Connection

pub enum Connection {
    Tcp(TcpStream),
    Fd(RawFd),
    Tls(TlsStream<Self>),
    Deflate {
        inner: DeflateEncoder<DeflateDecoder<Box<Self>>>,
    },
}

Variants

Tcp(TcpStream)
Fd(RawFd)
Tls(TlsStream<Self>)
Deflate

Fields of Deflate

inner: DeflateEncoder<DeflateDecoder<Box<Self>>>

Implementations

impl Connection[src]

pub const IO_BUF_SIZE: usize[src]

pub fn deflate(self) -> Self[src]

pub fn set_nonblocking(&self, nonblocking: bool) -> Result<()>[src]

pub fn set_read_timeout(&self, dur: Option<Duration>) -> Result<()>[src]

pub fn set_write_timeout(&self, dur: Option<Duration>) -> Result<()>[src]

pub fn keepalive(&self) -> Result<Option<Duration>>[src]

pub fn set_keepalive(&self, keepalive: Option<Duration>) -> Result<()>[src]

unsafe fn setsockopt<T>(&self, opt: c_int, val: c_int, payload: T) -> Result<()> where
    T: Copy
[src]

unsafe fn getsockopt<T: Copy>(&self, opt: c_int, val: c_int) -> Result<T>[src]

Trait Implementations

impl AsRawFd for Connection[src]

impl Debug for Connection[src]

impl Drop for Connection[src]

impl Read for Connection[src]

impl Write for Connection[src]

Auto Trait Implementations

impl RefUnwindSafe for Connection

impl Send for Connection

impl Sync for Connection

impl Unpin for Connection

impl UnwindSafe for Connection

Blanket Implementations

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

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

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

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

impl<T> Instrument for T[src]

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

impl<R> ReadBytesExt for R where
    R: Read + ?Sized

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<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]

impl<W> WriteBytesExt for W where
    W: Write + ?Sized