#[repr(C)]pub struct PamojaDutyCycle {
pub active_us: u64,
pub sleep_us: u64,
}Expand description
The split between the time a node works and the time it sleeps.
Fields§
§active_us: u64How long the node stays awake each period, in microseconds.
sleep_us: u64How long it sleeps each period, in microseconds.
Trait Implementations§
Source§impl Clone for PamojaDutyCycle
impl Clone for PamojaDutyCycle
Source§fn clone(&self) -> PamojaDutyCycle
fn clone(&self) -> PamojaDutyCycle
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 PamojaDutyCycle
Source§impl Debug for PamojaDutyCycle
impl Debug for PamojaDutyCycle
impl Eq for PamojaDutyCycle
Source§impl PartialEq for PamojaDutyCycle
impl PartialEq for PamojaDutyCycle
Source§fn eq(&self, other: &PamojaDutyCycle) -> bool
fn eq(&self, other: &PamojaDutyCycle) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PamojaDutyCycle
Auto Trait Implementations§
impl Freeze for PamojaDutyCycle
impl RefUnwindSafe for PamojaDutyCycle
impl Send for PamojaDutyCycle
impl Sync for PamojaDutyCycle
impl Unpin for PamojaDutyCycle
impl UnsafeUnpin for PamojaDutyCycle
impl UnwindSafe for PamojaDutyCycle
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