pub enum Type {
Uninit,
Foreground,
Background,
}Expand description
Enumeration of the task / thread types.
Since we have a well-defined primitives of creating tasks of different kind and using async / await language to control them, for convenience, each task must only be associated with one type, and each thread is only allowed to execute one type of task, so there’s no ambiguity while querying the type.
Variants§
Trait Implementations§
impl Copy for Type
impl Eq for Type
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnsafeUnpin for Type
impl UnwindSafe for Type
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