pub enum NetworkType {
Unknown,
Wifi,
Cell,
Wired,
Vpn,
Bluetooth,
Other,
Unavailable,
}Expand description
The active network path, in OTel network.connection.type terms.
Variants§
Unknown
The platform cannot tell the network type; sent as unknown.
Wifi
Wi-Fi; sent as wifi.
Cell
A cellular network; sent as cell.
Wired
Ethernet or another wired link; sent as wired.
Vpn
A VPN tunnel is the active interface (Android TRANSPORT_VPN, WebRTC candidate vpn).
Bluetooth
Bluetooth tethering (Android TRANSPORT_BLUETOOTH, WebRTC candidate bluetooth).
Other
Connected over something the platform does not name (NWInterface.InterfaceType.other,
Android TRANSPORT_USB / LOWPAN, …).
No network path: the device is offline; sent as unavailable.
Trait Implementations§
Source§impl Clone for NetworkType
impl Clone for NetworkType
impl Copy for NetworkType
Source§impl Debug for NetworkType
impl Debug for NetworkType
Source§impl Default for NetworkType
impl Default for NetworkType
impl Eq for NetworkType
Source§impl PartialEq for NetworkType
impl PartialEq for NetworkType
impl StructuralPartialEq for NetworkType
Auto Trait Implementations§
impl Forget for NetworkType
impl Freeze for NetworkType
impl Move for NetworkType
impl RefUnwindSafe for NetworkType
impl Send for NetworkType
impl Sync for NetworkType
impl Unpin for NetworkType
impl UnsafeUnpin for NetworkType
impl UnwindSafe for NetworkType
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