pub struct NewClient<C, D> {
pub client: C,
pub dispatch: D,
}
Expand description
A channel and dispatch pair. The dispatch drives the sending and receiving of requests and must be polled continuously or spawned.
Fields§
§client: C
The new client.
dispatch: D
The client’s dispatch.
Trait Implementations§
Auto Trait Implementations§
impl<C, D> Freeze for NewClient<C, D>
impl<C, D> RefUnwindSafe for NewClient<C, D>where
C: RefUnwindSafe,
D: RefUnwindSafe,
impl<C, D> Send for NewClient<C, D>
impl<C, D> Sync for NewClient<C, D>
impl<C, D> Unpin for NewClient<C, D>
impl<C, D> UnwindSafe for NewClient<C, D>where
C: UnwindSafe,
D: 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