pub struct APIDispatch<D: APIDispatchTrait>(/* private fields */);Expand description
A container for everything impl APIDispatchTrait
Because rust orphan rule forbid blanet impl non-local trait
Trait Implementations§
Source§impl<D: Clone + APIDispatchTrait> Clone for APIDispatch<D>
impl<D: Clone + APIDispatchTrait> Clone for APIDispatch<D>
Source§impl<D: APIDispatchTrait> Dispatch for APIDispatch<D>
impl<D: APIDispatchTrait> Dispatch for APIDispatch<D>
type RespTask = APIServerResp
type Codec = <D as APIDispatchTrait>::Codec
Auto Trait Implementations§
impl<D> Freeze for APIDispatch<D>where
D: Freeze,
impl<D> RefUnwindSafe for APIDispatch<D>where
D: RefUnwindSafe,
impl<D> Send for APIDispatch<D>
impl<D> Sync for APIDispatch<D>
impl<D> Unpin for APIDispatch<D>where
D: Unpin,
impl<D> UnsafeUnpin for APIDispatch<D>where
D: UnsafeUnpin,
impl<D> UnwindSafe for APIDispatch<D>where
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