pub enum ActionResult {
StartWith(Box<dyn Value>),
Finished(StateData),
CannotFulfill,
}Expand description
The result of Action::start()
Variants§
StartWith(Box<dyn Value>)
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§
Source§impl Clone for ActionResult
impl Clone for ActionResult
Source§fn clone(&self) -> ActionResult
fn clone(&self) -> ActionResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ActionResult
impl Debug for ActionResult
Source§impl PartialEq for ActionResult
impl PartialEq for ActionResult
Auto Trait Implementations§
impl Freeze for ActionResult
impl !RefUnwindSafe for ActionResult
impl Send for ActionResult
impl Sync for ActionResult
impl Unpin for ActionResult
impl !UnwindSafe for ActionResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more