pub enum TaskGroupLifecycleState {
Open,
Closing,
Closed,
ShutdownCompleted,
Poisoned,
}Expand description
Lifecycle state of a task group.
A shutdown moves a group through Closing, Closed and
ShutdownCompleted in that order.
Variants§
Open
Accepts tasks and child groups.
Closing
Admission is closed; cancellation has not yet reached every task.
Closed
Admission is closed and cancellation was broadcast; owned work is draining.
ShutdownCompleted
Shutdown finished and its report is published.
Poisoned
A task panicked; the group rejects new work until it is shut down.
Trait Implementations§
Source§impl Clone for TaskGroupLifecycleState
impl Clone for TaskGroupLifecycleState
impl Copy for TaskGroupLifecycleState
Source§impl Debug for TaskGroupLifecycleState
impl Debug for TaskGroupLifecycleState
impl Eq for TaskGroupLifecycleState
Source§impl PartialEq for TaskGroupLifecycleState
impl PartialEq for TaskGroupLifecycleState
Source§impl Serialize for TaskGroupLifecycleState
impl Serialize for TaskGroupLifecycleState
impl StructuralPartialEq for TaskGroupLifecycleState
Auto Trait Implementations§
impl Freeze for TaskGroupLifecycleState
impl RefUnwindSafe for TaskGroupLifecycleState
impl Send for TaskGroupLifecycleState
impl Sync for TaskGroupLifecycleState
impl Unpin for TaskGroupLifecycleState
impl UnsafeUnpin for TaskGroupLifecycleState
impl UnwindSafe for TaskGroupLifecycleState
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