pub struct StatusFlags(/* private fields */);Expand description
Status flags
Implementations§
Source§impl StatusFlags
impl StatusFlags
Sourcepub const PENDING_DATA: u8 = 0x04
pub const PENDING_DATA: u8 = 0x04
Node has pending data
Sourcepub const LOW_BATTERY: u8 = 0x08
pub const LOW_BATTERY: u8 = 0x08
Node is low on battery
Sourcepub fn is_connected(&self) -> bool
pub fn is_connected(&self) -> bool
Check if connected
Sourcepub fn is_syncing(&self) -> bool
pub fn is_syncing(&self) -> bool
Check if syncing
Sourcepub fn has_pending_data(&self) -> bool
pub fn has_pending_data(&self) -> bool
Check if has pending data
Sourcepub fn is_low_battery(&self) -> bool
pub fn is_low_battery(&self) -> bool
Check if low battery
Trait Implementations§
Source§impl Clone for StatusFlags
impl Clone for StatusFlags
Source§fn clone(&self) -> StatusFlags
fn clone(&self) -> StatusFlags
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StatusFlags
impl Debug for StatusFlags
Source§impl Default for StatusFlags
impl Default for StatusFlags
Source§fn default() -> StatusFlags
fn default() -> StatusFlags
Returns the “default value” for a type. Read more
Source§impl PartialEq for StatusFlags
impl PartialEq for StatusFlags
impl Copy for StatusFlags
impl Eq for StatusFlags
impl StructuralPartialEq for StatusFlags
Auto Trait Implementations§
impl Freeze for StatusFlags
impl RefUnwindSafe for StatusFlags
impl Send for StatusFlags
impl Sync for StatusFlags
impl Unpin for StatusFlags
impl UnwindSafe for StatusFlags
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