pub struct SystemReset {
pub force: bool,
pub boot_mode: Option<u8>,
}Expand description
System Reset command
Fields§
§force: boolForces reset
boot_mode: Option<u8>Boot mode
- 0: Normal boot
- 1: Bootloader recovery mode
Trait Implementations§
Source§impl Debug for SystemReset
impl Debug for SystemReset
Source§impl McuMgrCommand for SystemReset
impl McuMgrCommand for SystemReset
Source§type Payload = SystemReset
type Payload = SystemReset
the data payload type
Source§type Response = SystemResetResponse
type Response = SystemResetResponse
the response type of the command
Source§fn is_write_operation(&self) -> bool
fn is_write_operation(&self) -> bool
whether this command is a read or write operation
Source§fn command_id(&self) -> u8
fn command_id(&self) -> u8
the command ID
Source§impl PartialEq for SystemReset
impl PartialEq for SystemReset
Source§impl Serialize for SystemReset
impl Serialize for SystemReset
impl Eq for SystemReset
impl StructuralPartialEq for SystemReset
Auto Trait Implementations§
impl Freeze for SystemReset
impl RefUnwindSafe for SystemReset
impl Send for SystemReset
impl Sync for SystemReset
impl Unpin for SystemReset
impl UnwindSafe for SystemReset
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