pub enum WaitResult {
Signalled,
TimedOut,
Other(u32),
}Expand description
Why a wait callback ran.
Variants§
Signalled
The watched handle became signalled.
TimedOut
The timeout given when the wait was armed elapsed first.
Other(u32)
The pool reported a result this crate does not model. The raw value is preserved so a caller can inspect it rather than having it discarded.
Trait Implementations§
Source§impl Clone for WaitResult
impl Clone for WaitResult
Source§fn clone(&self) -> WaitResult
fn clone(&self) -> WaitResult
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 moreimpl Copy for WaitResult
Source§impl Debug for WaitResult
impl Debug for WaitResult
impl Eq for WaitResult
Source§impl PartialEq for WaitResult
impl PartialEq for WaitResult
impl StructuralPartialEq for WaitResult
Auto Trait Implementations§
impl Freeze for WaitResult
impl RefUnwindSafe for WaitResult
impl Send for WaitResult
impl Sync for WaitResult
impl Unpin for WaitResult
impl UnsafeUnpin for WaitResult
impl UnwindSafe for WaitResult
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