pub enum Reason {
RegionNotFound,
ChildRegionOpen {
child_id: RegionId,
child_state: RegionState,
},
TaskRunning {
task_id: TaskId,
task_state: String,
poll_count: u64,
},
ObligationHeld {
obligation_id: ObligationId,
obligation_type: String,
holder_task: TaskId,
},
}Expand description
A reason a region cannot close.
Variants§
RegionNotFound
Region id not present in runtime state.
ChildRegionOpen
A child region is still open.
TaskRunning
A task in the region is still running.
ObligationHeld
An obligation is still reserved/held.
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 UnsafeUnpin for Reason
impl UnwindSafe for Reason
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).