#[repr(C)]pub struct PamojaPowerPlan {
pub active_us: u64,
pub saver_us: u64,
pub critical_us: u64,
pub saver_below: f32,
pub critical_below: f32,
}Expand description
The work intervals a node uses in each mode, and where the modes change.
Build one with pamoja_power_plan_new, which applies the default
thresholds, then move them with pamoja_power_plan_with_thresholds.
Fields§
§active_us: u64The interval between work at a healthy charge, in microseconds.
saver_us: u64The interval used to conserve charge, in microseconds.
critical_us: u64The interval used at a critically low charge, in microseconds.
saver_below: f32Enter PamojaPowerMode::Saver below this state of charge.
critical_below: f32Enter PamojaPowerMode::Critical below this state of charge.
Trait Implementations§
Source§impl Clone for PamojaPowerPlan
impl Clone for PamojaPowerPlan
Source§fn clone(&self) -> PamojaPowerPlan
fn clone(&self) -> PamojaPowerPlan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PamojaPowerPlan
Source§impl Debug for PamojaPowerPlan
impl Debug for PamojaPowerPlan
Source§impl PartialEq for PamojaPowerPlan
impl PartialEq for PamojaPowerPlan
Source§fn eq(&self, other: &PamojaPowerPlan) -> bool
fn eq(&self, other: &PamojaPowerPlan) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PamojaPowerPlan
Auto Trait Implementations§
impl Freeze for PamojaPowerPlan
impl RefUnwindSafe for PamojaPowerPlan
impl Send for PamojaPowerPlan
impl Sync for PamojaPowerPlan
impl Unpin for PamojaPowerPlan
impl UnsafeUnpin for PamojaPowerPlan
impl UnwindSafe for PamojaPowerPlan
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