pub struct MappedListener<L, F, T, U>where
    L: Listener<Output = T>,
    F: FnMut(T) -> U + Send + Sync,
{ /* private fields */ }
Expand description

Represents a Listener that wraps a different Listener, mapping the received connection to something else using the map function

Implementations

Trait Implementations

Waits for the next fully-initialized transport for an incoming stream to be available, returning an error if no longer accepting new connections

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.