pub struct SourceHandle { /* private fields */ }Expand description
The EventSource port role: one subscription set and one queue, both in
the store under this handle’s identity.
Each source handle receives its own copy of every occurrence raised while it is subscribed, so two consumers of one event never consume each other’s occurrences.
Trait Implementations§
Source§impl Attached for SourceHandle
impl Attached for SourceHandle
Source§fn catalog(&self) -> &CatalogRef
fn catalog(&self) -> &CatalogRef
The catalog this port serves.
Source§impl Drop for SourceHandle
The source’s waker is dropped after the lock is released: it may be the
last reference to a task that owns another handle of this runtime, and
that handle’s own Drop takes the lock.
impl Drop for SourceHandle
The source’s waker is dropped after the lock is released: it may be the
last reference to a task that owns another handle of this runtime, and
that handle’s own Drop takes the lock.
Source§impl EventSource for SourceHandle
impl EventSource for SourceHandle
Source§fn subscribe(
&mut self,
iface: InterfaceNo,
ords: &[Ordinal],
) -> Result<(), SubscribeError>
fn subscribe( &mut self, iface: InterfaceNo, ords: &[Ordinal], ) -> Result<(), SubscribeError>
Starts delivery of the listed events.
Source§fn unsubscribe(&mut self, iface: InterfaceNo, ords: &[Ordinal])
fn unsubscribe(&mut self, iface: InterfaceNo, ords: &[Ordinal])
Stops delivery of the listed events.
Source§impl Wakeable for SourceHandle
Stores one Event waker, whatever interface it was registered under, woken
by any raise that queues an occurrence for this source.
impl Wakeable for SourceHandle
Stores one Event waker, whatever interface it was registered under, woken
by any raise that queues an occurrence for this source.
Auto Trait Implementations§
impl Freeze for SourceHandle
impl RefUnwindSafe for SourceHandle
impl Send for SourceHandle
impl Sync for SourceHandle
impl Unpin for SourceHandle
impl UnsafeUnpin for SourceHandle
impl UnwindSafe for SourceHandle
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