logo
pub struct Listener { /* private fields */ }
Expand description

Multiplexer listener.

Implementations

Obtains the port allocator.

Accept a connection returning the sender and receiver for the opened port.

Returns None when the client of the remote endpoint has been dropped and no more connection requests can be made.

Obtains the next connection request from the remote endpoint.

Connection requests can be stored and accepted or rejected at a later time. The maximum number of unanswered connection requests is specified in the configuration. If this number is reached, the remote endpoint will not send any more connection requests.

Returns None when the client of the remote endpoint has been dropped and no more connection requests can be made.

Convert this into a listener stream.

Terminates the multiplexer, forcibly closing all open ports.

Trait Implementations

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

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

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more