Enum stepflow::action::ActionResult[][src]

pub enum ActionResult {
    StartWith(Box<dyn Value + 'static, Global>),
    Finished(StateData),
    CannotFulfill,
}

The result of Action::start()

Variants

StartWith(Box<dyn Value + 'static, Global>)

The action requires the caller to fulfill the Step’s outputs. The value’s meaning is Action dependent. When the caller obtains the output data (i.e. with a form), it can then advance the Session.

if let ActionResult::StartWith(uri) = action_result {
  respond_with_redirect(uri.downcast::<StringValue>().unwrap())
}
Finished(StateData)

The action fulfilled the ouputs with the results in the StateData.

CannotFulfill

The action was not able to fulfill the ouputs as a result of a normal condition such as a minimum time duration. This should not be used for error situations.

Trait Implementations

impl Clone for ActionResult[src]

impl Debug for ActionResult[src]

impl PartialEq<ActionResult> for ActionResult[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, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.