pub struct ScopedCancellationContext { /* private fields */ }Expand description
Original scope ancestry carried by a candidate cooperative child request. Reading this immutable metadata does not authorize entering a scope body.
Implementations§
Source§impl ScopedCancellationContext
impl ScopedCancellationContext
pub fn from_value(value: &Value) -> Result<Self>
pub fn root_context(&self) -> &CancellationContext
pub fn lineage(&self) -> &[ScopedCancellationLineage]
pub fn request_id(&self) -> &str
pub fn parent_request_id(&self) -> Option<&str>
pub fn workflow_instance_id(&self) -> &str
pub fn workflow_run_id(&self) -> &str
pub fn scope_id(&self) -> &str
pub fn root_scope_id(&self) -> &str
pub fn requested_at(&self) -> DateTime<Utc>
pub fn root_deadline(&self) -> DateTime<Utc>
pub fn deadline(&self) -> DateTime<Utc>
pub fn to_value(&self) -> Value
Trait Implementations§
Source§impl Clone for ScopedCancellationContext
impl Clone for ScopedCancellationContext
Source§fn clone(&self) -> ScopedCancellationContext
fn clone(&self) -> ScopedCancellationContext
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 moreSource§impl Debug for ScopedCancellationContext
impl Debug for ScopedCancellationContext
impl Eq for ScopedCancellationContext
impl StructuralPartialEq for ScopedCancellationContext
Auto Trait Implementations§
impl Freeze for ScopedCancellationContext
impl RefUnwindSafe for ScopedCancellationContext
impl Send for ScopedCancellationContext
impl Sync for ScopedCancellationContext
impl Unpin for ScopedCancellationContext
impl UnwindSafe for ScopedCancellationContext
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