pub struct IcdModeConfig {
pub idle_mode_duration_s: u32,
pub active_mode_duration_ms: u32,
pub active_mode_threshold_ms: u16,
pub user_active_mode_trigger_hint: u32,
pub user_active_mode_trigger_instruction: &'static str,
}Expand description
The timing parameters an ICD advertises through the cluster’s mandatory mode-duration / threshold attributes.
These describe the device’s own power-management behavior; the application supplies them.
Fields§
§idle_mode_duration_s: u32Maximum time (seconds) the device may stay in idle mode. Must not be
smaller than active_mode_duration_ms converted to seconds.
active_mode_duration_ms: u32Minimum time (milliseconds) the device stays active after leaving idle.
active_mode_threshold_ms: u16Minimum time (milliseconds) the device stays active after network activity. Also the ICD Check-In application data.
user_active_mode_trigger_hint: u32The UserActiveModeTriggerHint bitmap: how a user can return the device
to active mode. 0 means no trigger advertised.
user_active_mode_trigger_instruction: &'static strThe UserActiveModeTriggerInstruction string paired with the hint (empty
when the hint needs no free-form instruction). Must be <= 128 bytes.
Trait Implementations§
Source§impl Clone for IcdModeConfig
impl Clone for IcdModeConfig
Source§fn clone(&self) -> IcdModeConfig
fn clone(&self) -> IcdModeConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for IcdModeConfig
Source§impl Debug for IcdModeConfig
impl Debug for IcdModeConfig
impl Eq for IcdModeConfig
Source§impl Hash for IcdModeConfig
impl Hash for IcdModeConfig
Source§impl PartialEq for IcdModeConfig
impl PartialEq for IcdModeConfig
impl StructuralPartialEq for IcdModeConfig
Auto Trait Implementations§
impl Freeze for IcdModeConfig
impl RefUnwindSafe for IcdModeConfig
impl Send for IcdModeConfig
impl Sync for IcdModeConfig
impl Unpin for IcdModeConfig
impl UnsafeUnpin for IcdModeConfig
impl UnwindSafe for IcdModeConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more