pub struct RuyiNetworkStatus {
pub is_wifi: Option<bool>,
pub name: Option<String>,
pub adapter_status: Option<bool>,
pub internet_status: Option<bool>,
}
Fields
is_wifi: Option<bool>
name: Option<String>
adapter_status: Option<bool>
internet_status: Option<bool>
Implementations
sourceimpl RuyiNetworkStatus
impl RuyiNetworkStatus
pub fn new<F1, F2, F3, F4>(
is_wifi: F1,
name: F2,
adapter_status: F3,
internet_status: F4
) -> RuyiNetworkStatuswhere
F1: Into<Option<bool>>,
F2: Into<Option<String>>,
F3: Into<Option<bool>>,
F4: Into<Option<bool>>,
pub fn read_from_in_protocol(
i_prot: &mut dyn TInputProtocol
) -> Result<RuyiNetworkStatus>
pub fn write_to_out_protocol(
&self,
o_prot: &mut dyn TOutputProtocol
) -> Result<()>
Trait Implementations
sourceimpl Clone for RuyiNetworkStatus
impl Clone for RuyiNetworkStatus
sourcefn clone(&self) -> RuyiNetworkStatus
fn clone(&self) -> RuyiNetworkStatus
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 RuyiNetworkStatus
impl Debug for RuyiNetworkStatus
sourceimpl Default for RuyiNetworkStatus
impl Default for RuyiNetworkStatus
sourceimpl Hash for RuyiNetworkStatus
impl Hash for RuyiNetworkStatus
sourceimpl Ord for RuyiNetworkStatus
impl Ord for RuyiNetworkStatus
sourcefn cmp(&self, other: &RuyiNetworkStatus) -> Ordering
fn cmp(&self, other: &RuyiNetworkStatus) -> 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<RuyiNetworkStatus> for RuyiNetworkStatus
impl PartialEq<RuyiNetworkStatus> for RuyiNetworkStatus
sourcefn eq(&self, other: &RuyiNetworkStatus) -> bool
fn eq(&self, other: &RuyiNetworkStatus) -> bool
sourceimpl PartialOrd<RuyiNetworkStatus> for RuyiNetworkStatus
impl PartialOrd<RuyiNetworkStatus> for RuyiNetworkStatus
sourcefn partial_cmp(&self, other: &RuyiNetworkStatus) -> Option<Ordering>
fn partial_cmp(&self, other: &RuyiNetworkStatus) -> 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 RuyiNetworkStatus
impl StructuralEq for RuyiNetworkStatus
impl StructuralPartialEq for RuyiNetworkStatus
Auto Trait Implementations
impl RefUnwindSafe for RuyiNetworkStatus
impl Send for RuyiNetworkStatus
impl Sync for RuyiNetworkStatus
impl Unpin for RuyiNetworkStatus
impl UnwindSafe for RuyiNetworkStatus
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