pub struct ReadParam<'node> { /* private fields */ }Expand description
The “read command received” state. The bus controller expects a reply with the current value of the specified parameter.
Implementations§
Source§impl<'node> ReadParam<'node>
impl<'node> ReadParam<'node>
Sourcepub fn send_reply_ok(self, value: Value) -> StateToken
pub fn send_reply_ok(self, value: Value) -> StateToken
Send a response to the master with the value of the parameter in the read request.
Sourcepub fn send_invalid_parameter(self) -> StateToken
pub fn send_invalid_parameter(self) -> StateToken
Inform the master that the parameter in the request is invalid.
Sourcepub fn send_read_failed(self) -> StateToken
pub fn send_read_failed(self) -> StateToken
Inform the bus master that the read request failed for some reason other than invalid parameter number.
Sourcepub fn no_reply(self) -> StateToken
pub fn no_reply(self) -> StateToken
Do not send any reply to the master. Transition to the idle ReceiveData state instead.
You really shouldn’t do this, since this will leave the master waiting until it times out.
Trait Implementations§
Auto Trait Implementations§
impl<'node> !UnwindSafe for ReadParam<'node>
impl<'node> Freeze for ReadParam<'node>
impl<'node> RefUnwindSafe for ReadParam<'node>
impl<'node> Send for ReadParam<'node>
impl<'node> Sync for ReadParam<'node>
impl<'node> Unpin for ReadParam<'node>
impl<'node> UnsafeUnpin for ReadParam<'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