Skip to main content

DynamicTaskState

Struct DynamicTaskState 

Source
pub struct DynamicTaskState { /* private fields */ }

Implementations§

Source§

impl DynamicTaskState

Source

pub fn root( user_frames: Vec<BTreeMap<Value, Value>>, hidden_frames: Vec<BTreeMap<Value, Value>>, stacks: BTreeMap<Value, Vec<Value>>, ) -> Self

Source

pub fn user_get(&self, key: &Value) -> Option<Value>

Source

pub fn user_all(&self) -> BTreeMap<Value, Value>

Source

pub fn user_set(&self, key: Value, value: Value)

Source

pub fn user_remove(&self, key: &Value) -> Option<Value>

Source

pub fn user_clear(&self)

Source

pub fn push_user_frame( &self, bindings: BTreeMap<Value, Value>, ) -> Result<ScopeId, IdExhausted>

Source

pub fn remove_user_frame(&self, id: ScopeId) -> bool

Source

pub fn pop_user_frame(&self) -> bool

Source

pub fn hidden_get(&self, key: &Value) -> Option<Value>

Source

pub fn hidden_set(&self, key: Value, value: Value)

Source

pub fn push_hidden_frame( &self, bindings: BTreeMap<Value, Value>, ) -> Result<ScopeId, IdExhausted>

Source

pub fn remove_hidden_frame(&self, id: ScopeId) -> bool

Source

pub fn pop_hidden_frame(&self) -> bool

Source

pub fn stack_get(&self, key: &Value) -> Vec<Value>

Source

pub fn stack_push( &self, key: Value, value: Value, ) -> Result<ScopeId, IdExhausted>

Source

pub fn stack_pop(&self, key: &Value) -> Option<Value>

Source

pub fn remove_stack_value(&self, key: &Value, id: ScopeId) -> Option<Value>

Trait Implementations§

Source§

impl Debug for DynamicTaskState

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl TaskLocalValue for DynamicTaskState

Source§

fn inherit(&self) -> Rc<dyn TaskLocalValue>

Source§

fn as_any(&self) -> &dyn Any

Source§

fn preflight_error(&self) -> Option<SemaError>

A task-local extension may fail a task before its next VM quantum. This is for shared fail-closed state (for example, a workflow child invalidating its owner), not ordinary language-level cancellation.
Source§

impl Trace for DynamicTaskState

Source§

fn trace(&self, sink: &mut dyn FnMut(GcEdge<'_>)) -> bool

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.