pub struct ReachabilityFlags(pub u32);Tuple Fields§
§0: u32Implementations§
Source§impl ReachabilityFlags
impl ReachabilityFlags
pub fn bits(self) -> u32
pub fn is_transient_connection(self) -> bool
pub fn is_reachable(self) -> bool
pub fn needs_connection(self) -> bool
pub fn is_connection_on_traffic(self) -> bool
pub fn needs_intervention(self) -> bool
pub fn is_connection_on_demand(self) -> bool
pub fn is_local_address(self) -> bool
pub fn is_direct(self) -> bool
pub fn is_wwan(self) -> bool
Trait Implementations§
Source§impl Clone for ReachabilityFlags
impl Clone for ReachabilityFlags
Source§fn clone(&self) -> ReachabilityFlags
fn clone(&self) -> ReachabilityFlags
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReachabilityFlags
impl Debug for ReachabilityFlags
Source§impl Display for ReachabilityFlags
impl Display for ReachabilityFlags
Source§impl Hash for ReachabilityFlags
impl Hash for ReachabilityFlags
Source§impl PartialEq for ReachabilityFlags
impl PartialEq for ReachabilityFlags
Source§fn eq(&self, other: &ReachabilityFlags) -> bool
fn eq(&self, other: &ReachabilityFlags) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ReachabilityFlags
impl Eq for ReachabilityFlags
impl StructuralPartialEq for ReachabilityFlags
Auto Trait Implementations§
impl Freeze for ReachabilityFlags
impl RefUnwindSafe for ReachabilityFlags
impl Send for ReachabilityFlags
impl Sync for ReachabilityFlags
impl Unpin for ReachabilityFlags
impl UnsafeUnpin for ReachabilityFlags
impl UnwindSafe for ReachabilityFlags
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