pub struct WriteParam<'node> { /* private fields */ }Expand description
“Write command received” state. The bus controller wants to change the value of the specified parameter.
Implementations§
Source§impl<'node> WriteParam<'node>
impl<'node> WriteParam<'node>
Sourcepub fn write_ok(self) -> StateToken
pub fn write_ok(self) -> StateToken
Inform the bus controller that the parameter value was successfully updated.
Sourcepub fn write_error(self) -> StateToken
pub fn write_error(self) -> StateToken
The parameter or value is invalid, or something else is preventing us from setting the parameter to the given value.
Sourcepub fn no_reply(self) -> StateToken
pub fn no_reply(self) -> StateToken
Do not send any reply to the bus controller. Transition to the idle ReceiveData state instead.
You should avoid this, since this will leave the controller waiting until it times out.
Trait Implementations§
Source§impl<'node> Debug for WriteParam<'node>
impl<'node> Debug for WriteParam<'node>
Source§impl<'a> From<WriteParam<'a>> for NodeState<'a>
impl<'a> From<WriteParam<'a>> for NodeState<'a>
Source§fn from(x: WriteParam<'a>) -> Self
fn from(x: WriteParam<'a>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'node> !UnwindSafe for WriteParam<'node>
impl<'node> Freeze for WriteParam<'node>
impl<'node> RefUnwindSafe for WriteParam<'node>
impl<'node> Send for WriteParam<'node>
impl<'node> Sync for WriteParam<'node>
impl<'node> Unpin for WriteParam<'node>
impl<'node> UnsafeUnpin for WriteParam<'node>
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