Connection

Trait Connection 

Source
pub trait Connection<T: ?Sized> {
    type Target<'a>: Borrow<T>
       where Self: 'a;

    // Required methods
    fn client_socket(&self) -> Self::Target<'_>;
    fn server_socket(&self) -> Self::Target<'_>;
    fn tls_version(&self) -> Option<TlsVersion>;
}

Required Associated Types§

Source

type Target<'a>: Borrow<T> where Self: 'a

Required Methods§

Source

fn client_socket(&self) -> Self::Target<'_>

Source

fn server_socket(&self) -> Self::Target<'_>

Source

fn tls_version(&self) -> Option<TlsVersion>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§