[][src]Struct tcp_typed::Listener

pub struct Listener { /* fields omitted */ }

Methods

impl Listener[src]

pub fn new_ephemeral(host: &IpAddr, executor: &impl Notifier) -> (Self, u16)[src]

pub fn with_fd(process_listener: RawFd, executor: &impl Notifier) -> Self[src]

pub fn into_fd(self) -> RawFd[src]

pub fn with_socket_forwardee(
    socket_forwardee: SocketForwardee,
    executor: &impl Notifier
) -> Self
[src]

pub fn poll<'a, F: FnMut(&RawFd) -> Option<SocketForwarder>, E: Notifier>(
    &'a mut self,
    executor: &'a E,
    accept_hook: &'a mut F
) -> impl Iterator<Item = (SocketAddr, impl FnOnce(&E) -> ConnecteePoll)> + 'a
[src]

pub fn close(self, executor: &impl Notifier)[src]

Trait Implementations

impl Drop for Listener[src]

impl Debug for Listener[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self