Struct stepflow::Session[][src]

pub struct Session { /* fields omitted */ }

Implementations

impl Session[src]

pub fn new(id: SessionId) -> Session[src]

pub fn with_capacity(
    id: SessionId,
    var_capacity: usize,
    step_capacity: usize,
    action_capacity: usize
) -> Session
[src]

pub fn id(&self) -> &SessionId[src]

pub fn state_data(&self) -> &StateData[src]

pub fn current_step(&self) -> Result<&StepId, Error>[src]

pub fn step_store(&self) -> &ObjectStore<Step, StepId>[src]

pub fn step_store_mut(&mut self) -> &mut ObjectStore<Step, StepId>[src]

pub fn push_root_substep(&mut self, step_id: StepId)[src]

pub fn action_store(&self) -> &ActionObjectStore[src]

pub fn varstore(
    &self
) -> &ObjectStore<Box<dyn Var + 'static + Send + Sync, Global>, VarId>
[src]

pub fn varstore_mut(
    &mut self
) -> &mut ObjectStore<Box<dyn Var + 'static + Send + Sync, Global>, VarId>
[src]

pub fn advance(
    &mut self,
    step_output: Option<(&StepId, StateData)>
) -> Result<AdvanceBlockedOn, Error>
[src]

pub fn set_action_for_step(
    &mut self,
    action_id: ActionId,
    step_id: Option<&StepId>
) -> Result<(), Error>
[src]

Trait Implementations

impl Debug for Session[src]

impl ObjectStoreContent for Session[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AsAny for T where
    T: Any
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.