pub struct NetworkConnectionStatus {
pub pre_lan_adapter: Option<bool>,
pub cur_lan_adapter: Option<bool>,
pub pre_wlan_adapter: Option<bool>,
pub cur_wlan_adapter: Option<bool>,
pub pre_internet_connection: Option<bool>,
pub cur_internet_connection: Option<bool>,
}
Fields
pre_lan_adapter: Option<bool>
cur_lan_adapter: Option<bool>
pre_wlan_adapter: Option<bool>
cur_wlan_adapter: Option<bool>
pre_internet_connection: Option<bool>
cur_internet_connection: Option<bool>
Implementations
sourceimpl NetworkConnectionStatus
impl NetworkConnectionStatus
pub fn new<F1, F2, F3, F4, F5, F6>(
pre_lan_adapter: F1,
cur_lan_adapter: F2,
pre_wlan_adapter: F3,
cur_wlan_adapter: F4,
pre_internet_connection: F5,
cur_internet_connection: F6
) -> NetworkConnectionStatuswhere
F1: Into<Option<bool>>,
F2: Into<Option<bool>>,
F3: Into<Option<bool>>,
F4: Into<Option<bool>>,
F5: Into<Option<bool>>,
F6: Into<Option<bool>>,
pub fn read_from_in_protocol(
i_prot: &mut dyn TInputProtocol
) -> Result<NetworkConnectionStatus>
pub fn write_to_out_protocol(
&self,
o_prot: &mut dyn TOutputProtocol
) -> Result<()>
Trait Implementations
sourceimpl Clone for NetworkConnectionStatus
impl Clone for NetworkConnectionStatus
sourcefn clone(&self) -> NetworkConnectionStatus
fn clone(&self) -> NetworkConnectionStatus
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for NetworkConnectionStatus
impl Debug for NetworkConnectionStatus
sourceimpl Default for NetworkConnectionStatus
impl Default for NetworkConnectionStatus
sourceimpl Hash for NetworkConnectionStatus
impl Hash for NetworkConnectionStatus
sourceimpl Ord for NetworkConnectionStatus
impl Ord for NetworkConnectionStatus
sourcefn cmp(&self, other: &NetworkConnectionStatus) -> Ordering
fn cmp(&self, other: &NetworkConnectionStatus) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<NetworkConnectionStatus> for NetworkConnectionStatus
impl PartialEq<NetworkConnectionStatus> for NetworkConnectionStatus
sourcefn eq(&self, other: &NetworkConnectionStatus) -> bool
fn eq(&self, other: &NetworkConnectionStatus) -> bool
sourceimpl PartialOrd<NetworkConnectionStatus> for NetworkConnectionStatus
impl PartialOrd<NetworkConnectionStatus> for NetworkConnectionStatus
sourcefn partial_cmp(&self, other: &NetworkConnectionStatus) -> Option<Ordering>
fn partial_cmp(&self, other: &NetworkConnectionStatus) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for NetworkConnectionStatus
impl StructuralEq for NetworkConnectionStatus
impl StructuralPartialEq for NetworkConnectionStatus
Auto Trait Implementations
impl RefUnwindSafe for NetworkConnectionStatus
impl Send for NetworkConnectionStatus
impl Sync for NetworkConnectionStatus
impl Unpin for NetworkConnectionStatus
impl UnwindSafe for NetworkConnectionStatus
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more