#[repr(C)]pub struct PamojaPowerSchedule {
pub active_secs: u64,
pub saver_secs: u64,
pub critical_secs: u64,
pub saver_below: f32,
pub critical_below: f32,
}Expand description
How often a node samples as its battery drains, in whole seconds.
Fields§
§active_secs: u64Seconds between samples at a healthy charge.
saver_secs: u64Seconds between samples while conserving.
critical_secs: u64Seconds between samples when critically low.
saver_below: f32Enter the saver cadence below this state of charge.
critical_below: f32Enter the critical cadence below this state of charge.
Trait Implementations§
Source§impl Clone for PamojaPowerSchedule
impl Clone for PamojaPowerSchedule
Source§fn clone(&self) -> PamojaPowerSchedule
fn clone(&self) -> PamojaPowerSchedule
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 PamojaPowerSchedule
Source§impl Debug for PamojaPowerSchedule
impl Debug for PamojaPowerSchedule
Source§impl From<PowerSchedule> for PamojaPowerSchedule
impl From<PowerSchedule> for PamojaPowerSchedule
Source§impl PartialEq for PamojaPowerSchedule
impl PartialEq for PamojaPowerSchedule
Source§fn eq(&self, other: &PamojaPowerSchedule) -> bool
fn eq(&self, other: &PamojaPowerSchedule) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PamojaPowerSchedule
Auto Trait Implementations§
impl Freeze for PamojaPowerSchedule
impl RefUnwindSafe for PamojaPowerSchedule
impl Send for PamojaPowerSchedule
impl Sync for PamojaPowerSchedule
impl Unpin for PamojaPowerSchedule
impl UnsafeUnpin for PamojaPowerSchedule
impl UnwindSafe for PamojaPowerSchedule
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