pub struct CancellableExecution<T> {
pub value: T,
pub elapsed: Duration,
pub timeout: TimeoutClassification,
pub cancel_requested: bool,
pub cancellation_observed: bool,
pub cancellation_observation_latency: Option<Duration>,
pub watchdog_joined: bool,
pub watchdog_spawn_failed: bool,
}Expand description
Output of a guarded execution with cancellation flag.
Fields§
§value: TReturn value produced by the wrapped operation.
elapsed: DurationMeasured elapsed execution duration.
timeout: TimeoutClassificationExplicit timeout classification for the execution.
cancel_requested: boolTrue if deadline signaling requested cancellation while operation was still running.
cancellation_observed: boolTrue if any handler poll observed cancellation while running.
cancellation_observation_latency: Option<Duration>Latency between the first cancellation request and first observed cancellation poll.
watchdog_joined: boolTrue if a watchdog worker was started and deterministically joined.
watchdog_spawn_failed: boolTrue if the watchdog thread failed to spawn (graceful degradation).
Trait Implementations§
Source§impl<T: Clone> Clone for CancellableExecution<T>
impl<T: Clone> Clone for CancellableExecution<T>
Source§fn clone(&self) -> CancellableExecution<T>
fn clone(&self) -> CancellableExecution<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for CancellableExecution<T>
impl<T: Debug> Debug for CancellableExecution<T>
Source§impl<T: PartialEq> PartialEq for CancellableExecution<T>
impl<T: PartialEq> PartialEq for CancellableExecution<T>
impl<T: Eq> Eq for CancellableExecution<T>
impl<T> StructuralPartialEq for CancellableExecution<T>
Auto Trait Implementations§
impl<T> Freeze for CancellableExecution<T>where
T: Freeze,
impl<T> RefUnwindSafe for CancellableExecution<T>where
T: RefUnwindSafe,
impl<T> Send for CancellableExecution<T>where
T: Send,
impl<T> Sync for CancellableExecution<T>where
T: Sync,
impl<T> Unpin for CancellableExecution<T>where
T: Unpin,
impl<T> UnsafeUnpin for CancellableExecution<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for CancellableExecution<T>where
T: UnwindSafe,
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