pub struct RebootStruct {
pub goto_bootloader: u8,
}Expand description
reboot the system
Fields§
§goto_bootloader: u80 = normal reboot, run main application after reboot 1 = hold the device in bootloader after reboot
Trait Implementations§
Source§impl Clone for RebootStruct
impl Clone for RebootStruct
Source§fn clone(&self) -> RebootStruct
fn clone(&self) -> RebootStruct
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RebootStruct
impl Debug for RebootStruct
Source§impl Default for RebootStruct
impl Default for RebootStruct
Source§fn default() -> RebootStruct
fn default() -> RebootStruct
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RebootStruct
impl<'de> Deserialize<'de> for RebootStruct
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl DeserializePayload for RebootStruct
impl DeserializePayload for RebootStruct
fn deserialize(payload: &[u8]) -> Self
Source§impl PartialEq for RebootStruct
impl PartialEq for RebootStruct
Source§impl Serialize for RebootStruct
impl Serialize for RebootStruct
Source§impl SerializePayload for RebootStruct
impl SerializePayload for RebootStruct
impl StructuralPartialEq for RebootStruct
Auto Trait Implementations§
impl Freeze for RebootStruct
impl RefUnwindSafe for RebootStruct
impl Send for RebootStruct
impl Sync for RebootStruct
impl Unpin for RebootStruct
impl UnwindSafe for RebootStruct
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