pub struct NetworkState {
pub usable: Option<bool>,
pub metered: bool,
pub joined: u64,
}Expand description
What coven knows of the device’s network.
Fields§
§usable: Option<bool>Whether the device has a usable network; None where the platform
can’t tell.
metered: boolWhether coven treats that network as metered: the platform says it is, or failed to answer since the watch started, so it may be. False with no network, and where the platform never tells.
joined: u64How many times a usable network has appeared, or the device moved to another one, since the watch started, the network it found at the start included: each is a network report (§6.7).
Trait Implementations§
Source§impl Clone for NetworkState
impl Clone for NetworkState
Source§fn clone(&self) -> NetworkState
fn clone(&self) -> NetworkState
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 NetworkState
impl Debug for NetworkState
Source§impl PartialEq for NetworkState
impl PartialEq for NetworkState
impl Copy for NetworkState
impl Eq for NetworkState
impl StructuralPartialEq for NetworkState
Auto Trait Implementations§
impl Freeze for NetworkState
impl RefUnwindSafe for NetworkState
impl Send for NetworkState
impl Sync for NetworkState
impl Unpin for NetworkState
impl UnsafeUnpin for NetworkState
impl UnwindSafe for NetworkState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more