pub struct ReachabilityStream { /* private fields */ }Available on crate feature
async only.Expand description
Wraps async SCNetworkReachability notifications.
Implementations§
Source§impl ReachabilityStream
impl ReachabilityStream
Sourcepub fn subscribe(name: &str, capacity: usize) -> Result<Self>
pub fn subscribe(name: &str, capacity: usize) -> Result<Self>
Wraps SCReachabilityNotificationSubscribe.
Sourcepub const fn next(&self) -> NextItem<'_, ReachabilityEvent>
pub const fn next(&self) -> NextItem<'_, ReachabilityEvent>
Wraps the next buffered SCNetworkReachability notification.
Sourcepub fn try_next(&self) -> Option<ReachabilityEvent>
pub fn try_next(&self) -> Option<ReachabilityEvent>
Wraps a helper on SCNetworkReachability.
Sourcepub fn buffered_count(&self) -> usize
pub fn buffered_count(&self) -> usize
Wraps a helper on SCNetworkReachability.
Auto Trait Implementations§
impl Freeze for ReachabilityStream
impl RefUnwindSafe for ReachabilityStream
impl Send for ReachabilityStream
impl Sync for ReachabilityStream
impl Unpin for ReachabilityStream
impl UnsafeUnpin for ReachabilityStream
impl UnwindSafe for ReachabilityStream
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