pub struct ClientAdapter<P, H> { /* private fields */ }
Expand description
An adapter for a client protocol handler.
Implementations§
Source§impl<P, H> ClientAdapter<P, H>
impl<P, H> ClientAdapter<P, H>
Sourcepub fn from_untyped(handler: H) -> Self
pub fn from_untyped(handler: H) -> Self
Creates a new protocol client handler from a supported handler.
Trait Implementations§
Source§impl<T, P, H> ClientHandler<T> for ClientAdapter<P, H>where
T: Transport,
P: ClientProtocol<T, H>,
impl<T, P, H> ClientHandler<T> for ClientAdapter<P, H>where
T: Transport,
P: ClientProtocol<T, H>,
Auto Trait Implementations§
impl<P, H> Freeze for ClientAdapter<P, H>where
H: Freeze,
impl<P, H> RefUnwindSafe for ClientAdapter<P, H>where
H: RefUnwindSafe,
P: RefUnwindSafe,
impl<P, H> Send for ClientAdapter<P, H>
impl<P, H> Sync for ClientAdapter<P, H>
impl<P, H> Unpin for ClientAdapter<P, H>
impl<P, H> UnwindSafe for ClientAdapter<P, H>where
H: UnwindSafe,
P: UnwindSafe,
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