pub struct NullDispatcher {}Expand description
The NullDispatcher is as its name implies–a dispatcher that does nothing. This is convenient for initializing a capability provider with a null dispatcher, and then swapping it for a real dispatcher when the host runtime provides one configured with the appropriate channels
Implementations§
Source§impl NullDispatcher
impl NullDispatcher
pub fn new() -> NullDispatcher
Trait Implementations§
Source§impl Default for NullDispatcher
impl Default for NullDispatcher
Source§fn default() -> NullDispatcher
fn default() -> NullDispatcher
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NullDispatcher
impl RefUnwindSafe for NullDispatcher
impl Send for NullDispatcher
impl Sync for NullDispatcher
impl Unpin for NullDispatcher
impl UnwindSafe for NullDispatcher
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