pub struct SourceHandle<E: Encoding = FlatBuffers> { /* 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<E: Encoding> Attached for SourceHandle<E>
impl<E: Encoding> Attached for SourceHandle<E>
Source§fn catalog(&self) -> &CatalogRef
fn catalog(&self) -> &CatalogRef
The catalog this port serves.
Source§impl<E: Encoding> Drop for SourceHandle<E>
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<E: Encoding> Drop for SourceHandle<E>
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<E: Encoding> Encoded for SourceHandle<E>
impl<E: Encoding> Encoded for SourceHandle<E>
Source§impl<E: Encoding> EventSource for SourceHandle<E>
impl<E: Encoding> EventSource for SourceHandle<E>
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<E: Encoding> Wakeable for SourceHandle<E>
Stores one Event waker, whatever interface it was registered under, woken
by any raise that queues an occurrence for this source.
impl<E: Encoding> Wakeable for SourceHandle<E>
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<E> Freeze for SourceHandle<E>where
PhantomData<E>: Freeze,
impl<E> RefUnwindSafe for SourceHandle<E>where
PhantomData<E>: RefUnwindSafe,
impl<E> Send for SourceHandle<E>where
PhantomData<E>: Send,
impl<E> Sync for SourceHandle<E>where
PhantomData<E>: Sync,
impl<E> Unpin for SourceHandle<E>where
PhantomData<E>: Unpin,
impl<E> UnsafeUnpin for SourceHandle<E>where
PhantomData<E>: UnsafeUnpin,
impl<E> UnwindSafe for SourceHandle<E>where
PhantomData<E>: 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