Skip to main content

Connector

Trait Connector 

Source
pub trait Connector: Send + Sync {
    // Required method
    fn connect(
        &self,
        deadline: Instant,
    ) -> Pin<Box<dyn Future<Output = Result<Box<dyn ByteTransport>, ClientError>> + Send + '_>>;
}
Expand description

Opens independent transports, without negotiation or application parsing.

Required Methods§

Source

fn connect( &self, deadline: Instant, ) -> Pin<Box<dyn Future<Output = Result<Box<dyn ByteTransport>, ClientError>> + Send + '_>>

Dial before the remaining absolute setup deadline; dropping cancels dial.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§