pub struct WriterHandle<E: Encoding = FlatBuffers> { /* private fields */ }Expand description
The SignalWriter port role.
The staged changes and the per channel sequence counters live on the
handle, not in the store: staging is one provider’s private state until its
commit, and a sequence number is assigned by the sender (ridl §3.1).
Trait Implementations§
Source§impl<E: Encoding> Attached for WriterHandle<E>
impl<E: Encoding> Attached for WriterHandle<E>
Source§fn catalog(&self) -> &CatalogRef
fn catalog(&self) -> &CatalogRef
The catalog this port serves.
Source§impl<E: Encoding> Encoded for WriterHandle<E>
impl<E: Encoding> Encoded for WriterHandle<E>
Source§impl<E: Encoding> SignalWriter for WriterHandle<E>
impl<E: Encoding> SignalWriter for WriterHandle<E>
Source§fn set(
&mut self,
iface: InterfaceNo,
ord: Ordinal,
bytes: &[u8],
) -> Result<(), WriteError>
fn set( &mut self, iface: InterfaceNo, ord: Ordinal, bytes: &[u8], ) -> Result<(), WriteError>
Stages a new value.
Source§fn invalidate(
&mut self,
iface: InterfaceNo,
ord: Ordinal,
) -> Result<(), WriteError>
fn invalidate( &mut self, iface: InterfaceNo, ord: Ordinal, ) -> Result<(), WriteError>
Stages the invalid state (ridl §4.5), with
Cause::Declared.Source§fn touch(&mut self, iface: InterfaceNo, ord: Ordinal) -> Result<(), WriteError>
fn touch(&mut self, iface: InterfaceNo, ord: Ordinal) -> Result<(), WriteError>
Stages a re-affirmation of the current value, without a new value.
Source§fn commit(&mut self)
fn commit(&mut self)
Publishes everything staged. It cannot fail, so it reports nothing —
including that the runtime behind the port is gone. A caller learns
that from
WriteError::Detached on a later set, invalidate or
touch, never from that commit. What becomes of the changes staged
before a commit whose runtime has already detached is not fixed here.Auto Trait Implementations§
impl<E> Freeze for WriterHandle<E>where
PhantomData<E>: Freeze,
impl<E> RefUnwindSafe for WriterHandle<E>where
PhantomData<E>: RefUnwindSafe,
impl<E> Send for WriterHandle<E>where
PhantomData<E>: Send,
impl<E> Sync for WriterHandle<E>where
PhantomData<E>: Sync,
impl<E> Unpin for WriterHandle<E>where
PhantomData<E>: Unpin,
impl<E> UnsafeUnpin for WriterHandle<E>where
PhantomData<E>: UnsafeUnpin,
impl<E> UnwindSafe for WriterHandle<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