#[non_exhaustive]pub struct SuspendOutcomeDetails {
pub suspension_id: SuspensionId,
pub waitpoint_id: WaitpointId,
pub waitpoint_key: String,
pub waitpoint_token: WaitpointHmac,
pub additional_waitpoints: Vec<AdditionalWaitpointBinding>,
}Expand description
Shared “what happened on the waitpoint” payload carried in both
SuspendOutcome variants.
For Pattern 3 (RFC-014) — multi-waitpoint suspensions — the primary
binding’s identity lives at the top level (waitpoint_id /
waitpoint_key / waitpoint_token) and remaining bindings are
exposed via additional_waitpoints, each carrying its own minted
HMAC token so external signallers can deliver to any of the N
waitpoints the suspension is listening on.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.suspension_id: SuspensionId§waitpoint_id: WaitpointId§waitpoint_key: String§waitpoint_token: WaitpointHmac§additional_waitpoints: Vec<AdditionalWaitpointBinding>RFC-014 Pattern 3 extras (beyond the primary). Empty for single-waitpoint suspensions (patterns 1 + 2); carries one entry per additional binding for Pattern 3.
Implementations§
Source§impl SuspendOutcomeDetails
impl SuspendOutcomeDetails
pub fn new( suspension_id: SuspensionId, waitpoint_id: WaitpointId, waitpoint_key: String, waitpoint_token: WaitpointHmac, ) -> SuspendOutcomeDetails
Sourcepub fn with_additional_waitpoints(
self,
extras: Vec<AdditionalWaitpointBinding>,
) -> SuspendOutcomeDetails
pub fn with_additional_waitpoints( self, extras: Vec<AdditionalWaitpointBinding>, ) -> SuspendOutcomeDetails
Attach RFC-014 Pattern 3 additional-waitpoint bindings. The
primary binding stays at the top-level fields; extras lands
in additional_waitpoints.
Trait Implementations§
Source§impl Clone for SuspendOutcomeDetails
impl Clone for SuspendOutcomeDetails
Source§fn clone(&self) -> SuspendOutcomeDetails
fn clone(&self) -> SuspendOutcomeDetails
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 SuspendOutcomeDetails
impl Debug for SuspendOutcomeDetails
Source§impl PartialEq for SuspendOutcomeDetails
impl PartialEq for SuspendOutcomeDetails
impl Eq for SuspendOutcomeDetails
impl StructuralPartialEq for SuspendOutcomeDetails
Auto Trait Implementations§
impl Freeze for SuspendOutcomeDetails
impl RefUnwindSafe for SuspendOutcomeDetails
impl Send for SuspendOutcomeDetails
impl Sync for SuspendOutcomeDetails
impl Unpin for SuspendOutcomeDetails
impl UnsafeUnpin for SuspendOutcomeDetails
impl UnwindSafe for SuspendOutcomeDetails
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
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more