pub struct HyperConnectorAdapter<T>(/* private fields */);
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.
Implementations§
Source§impl<T> HyperConnectorAdapter<T>
impl<T> HyperConnectorAdapter<T>
Trait Implementations§
Source§impl<S, T> NetworkConnector for HyperConnectorAdapter<S>
impl<S, T> NetworkConnector for HyperConnectorAdapter<S>
Auto Trait Implementations§
impl<T> Freeze for HyperConnectorAdapter<T>
impl<T> !RefUnwindSafe for HyperConnectorAdapter<T>
impl<T> Send for HyperConnectorAdapter<T>where
T: Send,
impl<T> Sync for HyperConnectorAdapter<T>where
T: Send,
impl<T> Unpin for HyperConnectorAdapter<T>
impl<T> !UnwindSafe for HyperConnectorAdapter<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more