pub struct EstablishedConnection<'a, TInEvent> { /* private fields */ }
Expand description

An established connection in a pool.

Implementations

Returns information about the connected endpoint.

Returns the identity of the connected peer.

Returns the local connection ID.

(Asynchronously) sends an event to the connection handler.

If the handler is not ready to receive the event, either because it is busy or the connection is about to close, the given event is returned with an Err.

If execution of this method is preceded by successful execution of poll_ready_notify_handler without another intervening execution of notify_handler, it only fails if the connection is now about to close.

Checks if notify_handler is ready to accept an event.

Returns Ok(()) if the handler is ready to receive an event via notify_handler.

Returns Err(()) if the background task associated with the connection is terminating and the connection is about to close.

Initiates a graceful close of the connection.

Has no effect if the connection is already closing.

Trait Implementations

Formats the value using the given formatter. 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.

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.