pub struct SinkHandle<E: Encoding = FlatBuffers> { /* private fields */ }Expand description
The EventSink port role.
The sequence counters are the handle’s own, one per event channel, for the
same reason the writer handle’s are: ridl §3.1 scopes the number to the
channel and has the sender assign it. One counter for the whole handle
would make a consumer subscribed to some of this sink’s events see a gap in
seq where nothing was lost, and EventSource::next states that a gap is
a loss.
Trait Implementations§
Source§impl<E: Encoding> Attached for SinkHandle<E>
impl<E: Encoding> Attached for SinkHandle<E>
Source§fn catalog(&self) -> &CatalogRef
fn catalog(&self) -> &CatalogRef
The catalog this port serves.
Source§impl<E: Encoding> Encoded for SinkHandle<E>
impl<E: Encoding> Encoded for SinkHandle<E>
Source§impl<E: Encoding> EventSink for SinkHandle<E>
impl<E: Encoding> EventSink for SinkHandle<E>
Source§fn raise(
&mut self,
iface: InterfaceNo,
ord: Ordinal,
bytes: &[u8],
trace: Option<TraceContext>,
) -> Result<(), RaiseError>
fn raise( &mut self, iface: InterfaceNo, ord: Ordinal, bytes: &[u8], trace: Option<TraceContext>, ) -> Result<(), RaiseError>
Raises one occurrence.
Auto Trait Implementations§
impl<E> Freeze for SinkHandle<E>where
PhantomData<E>: Freeze,
impl<E> RefUnwindSafe for SinkHandle<E>where
PhantomData<E>: RefUnwindSafe,
impl<E> Send for SinkHandle<E>where
PhantomData<E>: Send,
impl<E> Sync for SinkHandle<E>where
PhantomData<E>: Sync,
impl<E> Unpin for SinkHandle<E>where
PhantomData<E>: Unpin,
impl<E> UnsafeUnpin for SinkHandle<E>where
PhantomData<E>: UnsafeUnpin,
impl<E> UnwindSafe for SinkHandle<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