pub struct Subscriber<S>where
S: Spec + 'static,{ /* private fields */ }Expand description
Lightweight sink used by producers to send events to subscribers.
You usually do not construct a Subscriber directly — it is provided to you in
the Spec::fetch_events callback so you can backfill a new subscription.
Implementations§
Source§impl<S> Subscriber<S>where
S: Spec + 'static,
impl<S> Subscriber<S>where
S: Spec + 'static,
Trait Implementations§
Source§impl<S> Clone for Subscriber<S>where
S: Spec + 'static,
impl<S> Clone for Subscriber<S>where
S: Spec + 'static,
Auto Trait Implementations§
impl<S> Freeze for Subscriber<S>
impl<S> RefUnwindSafe for Subscriber<S>where
Arc<<S as Spec>::SubscriptionId>: RefUnwindSafe,
Sender<(Arc<<S as Spec>::SubscriptionId>, <S as Spec>::Event)>: RefUnwindSafe,
Arc<Mutex<Option<<S as Spec>::Event>>>: RefUnwindSafe,
impl<S> Send for Subscriber<S>
impl<S> Sync for Subscriber<S>
impl<S> Unpin for Subscriber<S>
impl<S> UnsafeUnpin for Subscriber<S>where
Arc<<S as Spec>::SubscriptionId>: UnsafeUnpin,
Sender<(Arc<<S as Spec>::SubscriptionId>, <S as Spec>::Event)>: UnsafeUnpin,
Arc<Mutex<Option<<S as Spec>::Event>>>: UnsafeUnpin,
impl<S> UnwindSafe for Subscriber<S>where
Arc<<S as Spec>::SubscriptionId>: UnwindSafe,
Sender<(Arc<<S as Spec>::SubscriptionId>, <S as Spec>::Event)>: UnwindSafe,
Arc<Mutex<Option<<S as Spec>::Event>>>: UnwindSafe,
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