pub enum IdentityEvent {
StateChanged {
identity: AgentIdentity,
new_state: IdentityLifecycleState,
},
LeaseUpdated {
identity: AgentIdentity,
fencing_token: FencingToken,
},
LeaseLost {
identity: AgentIdentity,
},
CheckpointCompleted {
identity: AgentIdentity,
version: CheckpointVersion,
},
ResumeFallback {
identity: AgentIdentity,
reason: ResumeFallbackReason,
},
}Expand description
Events emitted for a specific identity, used by subscribe().
Variants§
StateChanged
Lifecycle state changed.
LeaseUpdated
Lease acquired or renewed.
LeaseLost
Lease lost.
Fields
§
identity: AgentIdentityCheckpointCompleted
Checkpoint completed.
ResumeFallback
Resume could not reuse a persisted runtime binding and materialization fresh-spawned a member instead.
Trait Implementations§
Source§impl Clone for IdentityEvent
impl Clone for IdentityEvent
Source§fn clone(&self) -> IdentityEvent
fn clone(&self) -> IdentityEvent
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 moreAuto Trait Implementations§
impl Freeze for IdentityEvent
impl RefUnwindSafe for IdentityEvent
impl Send for IdentityEvent
impl Sync for IdentityEvent
impl Unpin for IdentityEvent
impl UnsafeUnpin for IdentityEvent
impl UnwindSafe for IdentityEvent
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<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