Skip to main content

Connection

Trait Connection 

Source
pub trait Connection {
    // Required method
    fn connected(&self) -> Connected;
}
Available on crate features client-legacy and client only.
Expand description

Describes a type returned by a connector.

Required Methods§

Source

fn connected(&self) -> Connected

Return metadata describing the connection.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Connection for TcpStream

Available on crate feature tokio only.
Source§

impl Connection for UnixStream

Available on Unix and crate feature tokio only.

Implementors§

Source§

impl<T> Connection for TokioIo<T>
where T: Connection,

Available on crate feature tokio only.