pub struct EventBus<E> {
pub tx: Sender<E>,
pub rx: Receiver<E>,
}Fields§
§tx: Sender<E>§rx: Receiver<E>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for EventBus<E>
impl<E> RefUnwindSafe for EventBus<E>
impl<E> Send for EventBus<E>where
E: Send,
impl<E> Sync for EventBus<E>where
E: Send,
impl<E> Unpin for EventBus<E>where
E: Unpin,
impl<E> UnsafeUnpin for EventBus<E>
impl<E> UnwindSafe for EventBus<E>
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