pub struct NativeSocketStatusChanges { /* private fields */ }Expand description
Receiver for managed socket status changes.
Implementations§
Source§impl NativeSocketStatusChanges
impl NativeSocketStatusChanges
Sourcepub fn current(&self) -> SocketStatus
pub fn current(&self) -> SocketStatus
Returns the latest socket status without waiting.
Sourcepub async fn changed(&mut self) -> Result<SocketStatus, NativeEventError>
pub async fn changed(&mut self) -> Result<SocketStatus, NativeEventError>
Waits for and returns the next socket status.
Auto Trait Implementations§
impl Freeze for NativeSocketStatusChanges
impl RefUnwindSafe for NativeSocketStatusChanges
impl Send for NativeSocketStatusChanges
impl Sync for NativeSocketStatusChanges
impl Unpin for NativeSocketStatusChanges
impl UnsafeUnpin for NativeSocketStatusChanges
impl UnwindSafe for NativeSocketStatusChanges
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