pub struct NetInfo {
pub db: bool,
pub machine: bool,
pub direct: bool,
pub local: bool,
pub regional: bool,
pub global: bool,
pub other: BTreeMap<String, BTreeMap<String, String>>,
}Expand description
Network connection information
Fields§
§db: boolLocal database connection
machine: boolNetwork within the currently running machine
direct: boolDirect machine-to-machine communication
local: boolLocal network
regional: boolRegional (municipal, large corporate, etc.) network
global: boolThe global internet
other: BTreeMap<String, BTreeMap<String, String>>Some other, specific network, with optional additional network information
Auto Trait Implementations§
impl Freeze for NetInfo
impl RefUnwindSafe for NetInfo
impl Send for NetInfo
impl Sync for NetInfo
impl Unpin for NetInfo
impl UnwindSafe for NetInfo
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