pub struct Reachability { /* private fields */ }Implementations§
Source§impl Reachability
impl Reachability
Sourcepub fn with_address(address: SocketAddr) -> Result<Self>
pub fn with_address(address: SocketAddr) -> Result<Self>
pub fn with_address_pair( local_address: Option<SocketAddr>, remote_address: Option<SocketAddr>, ) -> Result<Self>
Sourcepub fn flags(&self) -> Result<ReachabilityFlags>
pub fn flags(&self) -> Result<ReachabilityFlags>
pub fn set_callback<F>(&mut self, callback: F) -> Result<()>where
F: FnMut(ReachabilityFlags) + 'static,
pub fn clear_callback(&mut self) -> Result<()>
pub fn schedule_with_run_loop_current(&mut self) -> Result<()>
pub fn unschedule_from_run_loop_current(&mut self) -> Result<()>
Trait Implementations§
Source§impl Drop for Reachability
impl Drop for Reachability
Auto Trait Implementations§
impl Freeze for Reachability
impl !RefUnwindSafe for Reachability
impl !Send for Reachability
impl !Sync for Reachability
impl Unpin for Reachability
impl UnsafeUnpin for Reachability
impl !UnwindSafe for Reachability
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