#[repr(C)]pub enum PamojaPowerMode {
Active = 0,
Saver = 1,
Critical = 2,
}Expand description
What a node should be doing at the current state of charge.
Variants§
Active = 0
Full duty, because the charge is healthy.
Saver = 1
Reduced duty, to conserve charge.
Critical = 2
Minimum duty, to stay alive as long as possible.
Trait Implementations§
Source§impl Clone for PamojaPowerMode
impl Clone for PamojaPowerMode
Source§fn clone(&self) -> PamojaPowerMode
fn clone(&self) -> PamojaPowerMode
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 PamojaPowerMode
Source§impl Debug for PamojaPowerMode
impl Debug for PamojaPowerMode
impl Eq for PamojaPowerMode
Source§impl PartialEq for PamojaPowerMode
impl PartialEq for PamojaPowerMode
Source§fn eq(&self, other: &PamojaPowerMode) -> bool
fn eq(&self, other: &PamojaPowerMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PamojaPowerMode
Auto Trait Implementations§
impl Freeze for PamojaPowerMode
impl RefUnwindSafe for PamojaPowerMode
impl Send for PamojaPowerMode
impl Sync for PamojaPowerMode
impl Unpin for PamojaPowerMode
impl UnsafeUnpin for PamojaPowerMode
impl UnwindSafe for PamojaPowerMode
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