Struct tsukuyomi::server::transport::Listener [−][src]
pub struct Listener { /* fields omitted */ }
A wrapped I/O object representing a listener for incoming connections.
This object supports for listening by using TCP or Unix domain socket, with encryption using TLS.
Methods
impl Listener
[src]
impl Listener
pub fn builder() -> Builder
[src]
pub fn builder() -> Builder
Creates a builder object for constructing the value of a Listener
.
pub fn poll_accept(&mut self) -> Poll<Handshake, Error>
[src]
pub fn poll_accept(&mut self) -> Poll<Handshake, Error>
Attempts to accept a TCP or UDS connection in an asynchronous manner.
pub fn incoming(self) -> Incoming
[src]
pub fn incoming(self) -> Incoming
Creates an instance of Incoming
from this value.