pub enum Metering {
Metered,
Unmetered,
Unknown,
}Expand description
Whether the active network path costs the user by the byte.
Variants§
Metered
Cellular, a hotspot, or a network the user marked as metered.
Unmetered
Wi-Fi or Ethernet the user did not mark as metered.
Unknown
The platform cannot tell, nothing observes the network, or there is no active path to meter.
Trait Implementations§
impl Copy for Metering
impl Eq for Metering
impl StructuralPartialEq for Metering
Auto Trait Implementations§
impl Freeze for Metering
impl RefUnwindSafe for Metering
impl Send for Metering
impl Sync for Metering
impl Unpin for Metering
impl UnsafeUnpin for Metering
impl UnwindSafe for Metering
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