pub struct Subscriber<T: Debug + ZeroCopySend + 'static> { /* private fields */ }Expand description
Pub/sub subscriber. Carries the paired event listener as Arc<Listener>
so the executor can attach it to its WaitSet.
Implementations§
Trait Implementations§
impl<T: Debug + ZeroCopySend + 'static> Send for Subscriber<T>
Auto Trait Implementations§
impl<T> Freeze for Subscriber<T>
impl<T> !RefUnwindSafe for Subscriber<T>
impl<T> !Sync for Subscriber<T>
impl<T> Unpin for Subscriber<T>where
T: Unpin,
impl<T> UnsafeUnpin for Subscriber<T>
impl<T> !UnwindSafe for Subscriber<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