Connection

Type Alias Connection 

Source
pub type Connection<const LEN_SIZE: usize> = Connection<Stream<LEN_SIZE>>;
Expand description

Type alias for Noise_XK-encrypted connection which is connect::Connection with TCP Stream.

Aliased Type§

pub struct Connection<const LEN_SIZE: usize> { /* private fields */ }

Implementations§

Source§

impl<const LEN_SIZE: usize> Connection<LEN_SIZE>

Source

pub fn connect(inet_addr: InetSocketAddr) -> Result<Self, Error>

Source

pub fn accept(listener: &TcpListener) -> Result<Self, Error>