pub enum TaskCompletionReason {
Expired,
Cancelled,
}Expand description
任务完成原因
表示定时器任务完成的原因,可以是正常到期或被取消。
Variants§
Trait Implementations§
Source§impl Clone for TaskCompletionReason
impl Clone for TaskCompletionReason
Source§fn clone(&self) -> TaskCompletionReason
fn clone(&self) -> TaskCompletionReason
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 TaskCompletionReason
Source§impl Debug for TaskCompletionReason
impl Debug for TaskCompletionReason
impl Eq for TaskCompletionReason
Source§impl PartialEq for TaskCompletionReason
impl PartialEq for TaskCompletionReason
Source§fn eq(&self, other: &TaskCompletionReason) -> bool
fn eq(&self, other: &TaskCompletionReason) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TaskCompletionReason
Auto Trait Implementations§
impl Freeze for TaskCompletionReason
impl RefUnwindSafe for TaskCompletionReason
impl Send for TaskCompletionReason
impl Sync for TaskCompletionReason
impl Unpin for TaskCompletionReason
impl UnsafeUnpin for TaskCompletionReason
impl UnwindSafe for TaskCompletionReason
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