pub struct ActionResult<R> {
pub status: GoalStatus,
pub value: Option<R>,
pub error: Option<String>,
}Expand description
Terminal result returned when a goal finishes (Succeeded / Failed / Canceled).
Regardless of the outcome, ActionResult is delivered exactly once.
After the client receives it, the goal’s lifecycle is complete.
Fields§
§status: GoalStatusTerminal status of the goal.
value: Option<R>Result payload; None when canceled or rejected.
error: Option<String>Failure reason; present when status == GoalStatus::Failed.
Trait Implementations§
Source§impl<R: Clone> Clone for ActionResult<R>
impl<R: Clone> Clone for ActionResult<R>
Source§fn clone(&self) -> ActionResult<R>
fn clone(&self) -> ActionResult<R>
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<R: Debug> Debug for ActionResult<R>
impl<R: Debug> Debug for ActionResult<R>
Source§impl<R: PartialEq> PartialEq for ActionResult<R>
impl<R: PartialEq> PartialEq for ActionResult<R>
impl<R: Eq> Eq for ActionResult<R>
impl<R> StructuralPartialEq for ActionResult<R>
Auto Trait Implementations§
impl<R> Freeze for ActionResult<R>where
R: Freeze,
impl<R> RefUnwindSafe for ActionResult<R>where
R: RefUnwindSafe,
impl<R> Send for ActionResult<R>where
R: Send,
impl<R> Sync for ActionResult<R>where
R: Sync,
impl<R> Unpin for ActionResult<R>where
R: Unpin,
impl<R> UnsafeUnpin for ActionResult<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for ActionResult<R>where
R: UnwindSafe,
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