pub struct ActivateOutcome {
pub active_id: WorkstreamId,
pub prior_id: Option<WorkstreamId>,
}Expand description
The result of a successful activate call (DOC-48 §5.1’s
{active_id, prior_id?} response shape).
Why: the RPC/REST layers need both ids to report the switch (and #3297’s
WorkstreamActivationChanged event will need the same pair) — a bare
() would lose the “what changed” information the spec’s response shape
requires.
What: active_id is always id (the just-activated workstream);
prior_id is None for a fresh activation or an idempotent
re-activation of the already-active workstream, Some(...) only when a
DIFFERENT workstream was actually deactivated (a force-switch).
Test: activation_tests::*.
Fields§
§active_id: WorkstreamId§prior_id: Option<WorkstreamId>Trait Implementations§
Source§impl Clone for ActivateOutcome
impl Clone for ActivateOutcome
impl Copy for ActivateOutcome
Source§impl Debug for ActivateOutcome
impl Debug for ActivateOutcome
impl Eq for ActivateOutcome
Source§impl PartialEq for ActivateOutcome
impl PartialEq for ActivateOutcome
impl StructuralPartialEq for ActivateOutcome
Auto Trait Implementations§
impl Freeze for ActivateOutcome
impl RefUnwindSafe for ActivateOutcome
impl Send for ActivateOutcome
impl Sync for ActivateOutcome
impl Unpin for ActivateOutcome
impl UnsafeUnpin for ActivateOutcome
impl UnwindSafe for ActivateOutcome
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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 moreCreates a shared type from an unshared type.