deltachat::net::session

Trait SessionStream

source
pub(crate) trait SessionStream:
    AsyncRead
    + AsyncWrite
    + Unpin
    + Send
    + Sync
    + Debug {
    // Required method
    fn set_read_timeout(&mut self, timeout: Option<Duration>);
}

Required Methods§

source

fn set_read_timeout(&mut self, timeout: Option<Duration>)

Change the read timeout on the session stream.

Trait Implementations§

source§

impl SessionStream for Box<dyn SessionStream>

source§

fn set_read_timeout(&mut self, timeout: Option<Duration>)

Change the read timeout on the session stream.

Implementations on Foreign Types§

source§

impl SessionStream for Box<dyn SessionStream>

source§

fn set_read_timeout(&mut self, timeout: Option<Duration>)

source§

impl<T: SessionStream> SessionStream for BufStream<T>

source§

fn set_read_timeout(&mut self, timeout: Option<Duration>)

source§

impl<T: SessionStream> SessionStream for BufWriter<T>

source§

fn set_read_timeout(&mut self, timeout: Option<Duration>)

source§

impl<T: SessionStream> SessionStream for DeflateStream<T>

source§

fn set_read_timeout(&mut self, timeout: Option<Duration>)

source§

impl<T: SessionStream> SessionStream for ProxyClientStream<T>

source§

fn set_read_timeout(&mut self, timeout: Option<Duration>)

source§

impl<T: SessionStream> SessionStream for Socks5Stream<T>

source§

fn set_read_timeout(&mut self, timeout: Option<Duration>)

source§

impl<T: SessionStream> SessionStream for TlsStream<T>

source§

fn set_read_timeout(&mut self, timeout: Option<Duration>)

source§

impl<T: SessionStream> SessionStream for TlsStream<T>

source§

fn set_read_timeout(&mut self, timeout: Option<Duration>)

source§

impl<T: AsyncRead + AsyncWrite + Send + Sync + Debug> SessionStream for Pin<Box<TimeoutStream<T>>>

source§

fn set_read_timeout(&mut self, timeout: Option<Duration>)

Implementors§