Struct stepflow::ActionObjectStore [−][src]
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]
&self,
name: Option<String>,
cb: CB
) -> Result<ActionId, Error> where
CB: FnOnce(ActionId) -> Result<Box<dyn Action + 'static + Send + Sync, Global>, IdError<ActionId>>,
pub fn register(
&self,
name: Option<String>,
object: Box<dyn Action + 'static + Send + Sync, Global>
) -> Result<ActionId, Error>
[src]
&self,
name: Option<String>,
object: Box<dyn Action + 'static + Send + Sync, Global>
) -> Result<ActionId, Error>
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]
&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>
Trait Implementations
impl Debug for ActionObjectStore
[src]
Auto Trait Implementations
impl RefUnwindSafe for ActionObjectStore
[src]
impl Send for ActionObjectStore
[src]
impl Sync for ActionObjectStore
[src]
impl Unpin for ActionObjectStore
[src]
impl UnwindSafe for ActionObjectStore
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AsAny for T where
T: Any,
[src]
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,