Struct caesar::TlsTcpListener [] [src]

pub struct TlsTcpListener {
    // some fields omitted
}

Abstracts over a TcpListener, and layers TLSv1.2 on top.

Methods

impl TlsTcpListener
[src]

fn bind<A: ToSocketAddrs>(addr: A, key: &str, cert: &str) -> Result<TlsTcpListener>

Behaves exactly like TcpStream::bind. It expects paths to key and certificate files in PEM format.

fn accept(&self) -> Result<(TlsTcpStream, SocketAddr)>

fn incoming(&self) -> Incoming

Trait Implementations

impl Debug for TlsTcpListener
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.