pub enum HatchOutcome {
Hatched(WorkflowId),
Existing(WorkflowId),
}Expand description
Outcome of a hatch request.
Variants§
Hatched(WorkflowId)
A new detached workflow was started under the derived identity.
Existing(WorkflowId)
The identity already had a workflow — the recorded no-op (R13.1): the existing workflow id is returned and nothing was started.
Implementations§
Source§impl HatchOutcome
impl HatchOutcome
Sourcepub const fn workflow_id(&self) -> &WorkflowId
pub const fn workflow_id(&self) -> &WorkflowId
The workflow id the hatch resolved to, whichever way it went.
Trait Implementations§
Source§impl Clone for HatchOutcome
impl Clone for HatchOutcome
Source§fn clone(&self) -> HatchOutcome
fn clone(&self) -> HatchOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HatchOutcome
impl Debug for HatchOutcome
impl Eq for HatchOutcome
Source§impl PartialEq for HatchOutcome
impl PartialEq for HatchOutcome
impl StructuralPartialEq for HatchOutcome
Auto Trait Implementations§
impl Freeze for HatchOutcome
impl RefUnwindSafe for HatchOutcome
impl Send for HatchOutcome
impl Sync for HatchOutcome
impl Unpin for HatchOutcome
impl UnsafeUnpin for HatchOutcome
impl UnwindSafe for HatchOutcome
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.