#[non_exhaustive]pub struct NetStatus {
pub connectivity: Connectivity,
pub metered: Option<bool>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.connectivity: Connectivity§metered: Option<bool>Whether the user pays per byte or asked to save data; None where the
platform does not say (Feature::Metered).
Implementations§
Trait Implementations§
impl Copy for NetStatus
impl Eq for NetStatus
impl StructuralPartialEq for NetStatus
Auto Trait Implementations§
impl Forget for NetStatus
impl Freeze for NetStatus
impl Move for NetStatus
impl RefUnwindSafe for NetStatus
impl Send for NetStatus
impl Sync for NetStatus
impl Unpin for NetStatus
impl UnsafeUnpin for NetStatus
impl UnwindSafe for NetStatus
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