Struct tinkerforge::hat_brick::SleepMode
source · pub struct SleepMode {
pub power_off_delay: u32,
pub power_off_duration: u32,
pub raspberry_pi_off: bool,
pub bricklets_off: bool,
pub enable_sleep_indicator: bool,
}
Fields§
§power_off_delay: u32
§power_off_duration: u32
§raspberry_pi_off: bool
§bricklets_off: bool
§enable_sleep_indicator: bool
Trait Implementations§
source§impl FromByteSlice for SleepMode
impl FromByteSlice for SleepMode
source§fn bytes_expected() -> usize
fn bytes_expected() -> usize
Returns how many bytes are expected to deserialize a instance of the implementing type. Currently this method is only used for strings.
source§fn from_le_byte_slice(bytes: &[u8]) -> SleepMode
fn from_le_byte_slice(bytes: &[u8]) -> SleepMode
Deserialize the implementing type from a byte slice.
source§impl PartialEq for SleepMode
impl PartialEq for SleepMode
impl Copy for SleepMode
impl Eq for SleepMode
impl StructuralPartialEq for SleepMode
Auto Trait Implementations§
impl RefUnwindSafe for SleepMode
impl Send for SleepMode
impl Sync for SleepMode
impl Unpin for SleepMode
impl UnwindSafe for SleepMode
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