#[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, ) -> Self
Sourcepub fn with_additional_waitpoints(
self,
extras: Vec<AdditionalWaitpointBinding>,
) -> Self
pub fn with_additional_waitpoints( self, extras: Vec<AdditionalWaitpointBinding>, ) -> Self
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