pub struct Connection<R, IO> { /* private fields */ }
Expand description

Wraps underlying I/O and the connection request that initiated it.

Implementations

Construct new Connection from request and IO parts.

Deconstructs into IO and request parts.

Replaces underlying IO, returning old IO and new Connection.

Returns a shared reference to the underlying IO.

Returns a mutable reference to the underlying IO.

Returns a reference to the connection request.

Returns hostname.

Trait Implementations

Formats the value using the given formatter. Read more
The resulting type after dereferencing.
Dereferences the value.
Mutably dereferences the value.
Responses given by the service.
Errors produced by the service when polling readiness or executing call.
The future response value.
Returns Ready when the service is able to process requests. Read more
Process the request and return the response asynchronously. Read more
Responses given by the created services.
Errors produced by the created services.
Service factory configuration.
The kind of Service created by this factory.
Errors potentially raised while building a service.
The future of the Service instance.g
Create and return a new service asynchronously.

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