Struct stepflow::ActionObjectStore[][src]

pub struct ActionObjectStore { /* fields omitted */ }

Implementations

impl ActionObjectStore[src]

pub fn with_capacity(capacity: usize) -> ActionObjectStore[src]

pub fn reserve_id(&self) -> Result<ActionId, Error>[src]

pub fn insert_new<CB>(
    &self,
    name: Option<String>,
    cb: CB
) -> Result<ActionId, Error> where
    CB: FnOnce(ActionId) -> Result<Box<dyn Action + 'static + Send + Sync, Global>, IdError<ActionId>>, 
[src]

pub fn register(
    &self,
    name: Option<String>,
    object: Box<dyn Action + 'static + Send + Sync, Global>
) -> Result<ActionId, Error>
[src]

pub fn id_from_name(&self, name: &str) -> Result<ActionId, Error>[src]

pub fn name_from_id(&self, action_id: &ActionId) -> Result<String, Error>[src]

pub fn start_action(
    &self,
    id: &ActionId,
    step: &Step,
    step_name: Option<&String>,
    step_data: &StateDataFiltered<'_>,
    vars: &ObjectStoreFiltered<'_, Box<dyn Var + 'static + Send + Sync, Global>, VarId>
) -> Result<ActionResult, Error>
[src]

Trait Implementations

impl Debug for ActionObjectStore[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.