pub struct WriterHandle { /* 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 Attached for WriterHandle
impl Attached for WriterHandle
Source§fn catalog(&self) -> &CatalogRef
fn catalog(&self) -> &CatalogRef
The catalog this port serves.
Source§impl SignalWriter for WriterHandle
impl SignalWriter for WriterHandle
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 Freeze for WriterHandle
impl RefUnwindSafe for WriterHandle
impl Send for WriterHandle
impl Sync for WriterHandle
impl Unpin for WriterHandle
impl UnsafeUnpin for WriterHandle
impl UnwindSafe for WriterHandle
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