pub struct IncomingConnectionEvent<'a, TTrans: 'a, TInEvent: 'a, TOutEvent: 'a, THandler: 'a, THandlerErr: 'a>where
    TTrans: Transport,
{ /* private fields */ }
Expand description

A new connection arrived on a listener.

Implementations

Starts processing the incoming connection and sets the handler to use for it.

Same as accept, but accepts a closure that turns a ConnectedPoint into a handler.

Address of the listener that received the connection.

Address used to send back data to the dialer.

Builds the ConnectedPoint corresponding to the incoming connection.

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.