pub enum Reason {
Timeout,
Condition,
Notification,
}Expand description
Describes why the method returned (if it returned successfully).
Variants§
Timeout
The timeout was reached.
Condition
A notification was received and the condition is fulfilled.
Notification
A notification was received.
Implementations§
Source§impl Reason
impl Reason
Sourcepub fn is_timeout(&self) -> bool
pub fn is_timeout(&self) -> bool
Convenience method to check the concrete reason.
Sourcepub fn is_condition(&self) -> bool
pub fn is_condition(&self) -> bool
Convenience method to check the concrete reason.
Sourcepub fn is_notification(&self) -> bool
pub fn is_notification(&self) -> bool
Convenience method to check the concrete reason.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Reason
impl RefUnwindSafe for Reason
impl Send for Reason
impl Sync for Reason
impl Unpin for Reason
impl UnwindSafe for Reason
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)