pub struct HyperConnectorAdapter<T>(_);
Expand description
An adapter that given T: hyper::client::connect::Connect
implements NetworkConnector
NOTE: this is only meant as a last resort, if you can directly
implement NetworkConnector
for your connector then avoid
using this adapter to reduce allocations.
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
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.