pub struct Dispatcher<T>{ /* private fields */ }
Implementations§
Source§impl<T: 'static + Hash + Send + Clone> Dispatcher<T>
impl<T: 'static + Hash + Send + Clone> Dispatcher<T>
pub fn new() -> Dispatcher<T>
pub fn register_broadcaster(&mut self, broadcaster: &mut dyn Broadcast<T>)
pub fn register_subscriber( &mut self, subscriber: &dyn Subscribe<T>, dispatch_type: T, )
pub fn start(&self)
Auto Trait Implementations§
impl<T> Freeze for Dispatcher<T>
impl<T> RefUnwindSafe for Dispatcher<T>
impl<T> Send for Dispatcher<T>
impl<T> Sync for Dispatcher<T>
impl<T> Unpin for Dispatcher<T>
impl<T> UnwindSafe for Dispatcher<T>
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