pub struct NetworkStatus {
pub is_online: bool,
pub connection_type: ConnectionType,
pub cellular_generation: Option<CellularGen>,
pub downlink_mbps: Option<f32>,
pub rtt_ms: Option<u32>,
pub is_metered: bool,
}Expand description
Network connectivity and bandwidth telemetry.
Fields§
§is_online: bool§connection_type: ConnectionType§cellular_generation: Option<CellularGen>§downlink_mbps: Option<f32>§rtt_ms: Option<u32>§is_metered: boolTrait Implementations§
Source§impl Clone for NetworkStatus
impl Clone for NetworkStatus
Source§fn clone(&self) -> NetworkStatus
fn clone(&self) -> NetworkStatus
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 NetworkStatus
Source§impl Debug for NetworkStatus
impl Debug for NetworkStatus
Source§impl Default for NetworkStatus
impl Default for NetworkStatus
Source§fn default() -> NetworkStatus
fn default() -> NetworkStatus
Returns the “default value” for a type. Read more
Source§impl PartialEq for NetworkStatus
impl PartialEq for NetworkStatus
impl StructuralPartialEq for NetworkStatus
Auto Trait Implementations§
impl Forget for NetworkStatus
impl Freeze for NetworkStatus
impl Move for NetworkStatus
impl RefUnwindSafe for NetworkStatus
impl Send for NetworkStatus
impl Sync for NetworkStatus
impl Unpin for NetworkStatus
impl UnsafeUnpin for NetworkStatus
impl UnwindSafe for NetworkStatus
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