pub struct CancellationHistory {
pub request: Option<CancellationRequest>,
pub delivery: Option<CancellationDelivery>,
pub request_index: usize,
pub delivery_index: Option<usize>,
/* private fields */
}Expand description
Validated canonical cancellation state for one workflow run.
An observation identifies a request. Only its committed delivery marker authorizes interruption at an authored call. Earlier results retain priority.
Fields§
§request: Option<CancellationRequest>§delivery: Option<CancellationDelivery>§request_index: usize§delivery_index: Option<usize>Implementations§
Source§impl CancellationHistory
impl CancellationHistory
Sourcepub fn from_events(
events: &[HistoryEvent],
run_id: &str,
observation: Option<&CancellationRequest>,
) -> Result<Self>
pub fn from_events( events: &[HistoryEvent], run_id: &str, observation: Option<&CancellationRequest>, ) -> Result<Self>
Read canonical markers without replacing original request identity.
Trait Implementations§
Source§impl Clone for CancellationHistory
impl Clone for CancellationHistory
Source§fn clone(&self) -> CancellationHistory
fn clone(&self) -> CancellationHistory
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for CancellationHistory
impl RefUnwindSafe for CancellationHistory
impl Send for CancellationHistory
impl Sync for CancellationHistory
impl Unpin for CancellationHistory
impl UnwindSafe for CancellationHistory
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