Trait faktory::Reconnect

source ·
pub trait Reconnect: Sized {
    // Required method
    fn reconnect(&self) -> Result<Self>;
}
Expand description

A stream that can be re-established after failing.

Required Methods§

source

fn reconnect(&self) -> Result<Self>

Re-establish the stream.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Reconnect for TcpStream

source§

fn reconnect(&self) -> Result<Self>

Implementors§

source§

impl<S> Reconnect for TlsStream<S>
where S: Read + Write + Reconnect + Send + Sync + Debug + 'static,

Available on crate feature tls only.