Struct async_message_dispatcher::Dispatcher
source · pub struct Dispatcher<K: Key, M> { /* private fields */ }
Implementations§
source§impl<K: Key, M> Dispatcher<K, M>
impl<K: Key, M> Dispatcher<K, M>
pub fn new() -> Self
pub fn notify(&self, key: K, message: M) -> ConsumerState<K, M>
Auto Trait Implementations§
impl<K, M> RefUnwindSafe for Dispatcher<K, M>
impl<K, M> Send for Dispatcher<K, M>where K: Send, M: Send,
impl<K, M> Sync for Dispatcher<K, M>where K: Send, M: Send,
impl<K, M> Unpin for Dispatcher<K, M>
impl<K, M> UnwindSafe for Dispatcher<K, M>
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