pub enum ControlEvent {
EffectStarted {
id: u64,
kind: EffectKind,
method: String,
},
EffectStopped {
id: u64,
kind: EffectKind,
method: String,
outcome: SettleOutcome,
executed: bool,
},
EffectCrashed {
id: u64,
kind: EffectKind,
method: String,
},
EffectDenied {
id: u64,
kind: EffectKind,
method: String,
stage: EffectAdmissionStage,
reason: String,
},
LeaseAcquired {
lease: String,
epoch: u64,
},
LeaseFenced {
lease: String,
old_epoch: u64,
new_epoch: u64,
},
LeaseReleased {
lease: String,
epoch: u64,
},
InputRejected {
lease: String,
epoch: u64,
sequence: u64,
reason: &'static str,
},
}Expand description
Lifecycle event emitted by crate::admission::EffectGate and
crate::lease::InputLease.
Variants§
EffectStarted
The request passed admission and its executor is about to run.
EffectStopped
The executor returned (ok/failed/cancelled), or a cancelled request was
settled before execution (executed == false).
EffectCrashed
The executor panicked. Settled as Failed; the panic is contained.
EffectDenied
Validation or approval refused the request; nothing executed.
LeaseAcquired
A controller acquired the input lease at epoch.
LeaseFenced
An attached holder at old_epoch was fenced by a new acquisition.
LeaseReleased
The current holder released the lease.
InputRejected
Input was refused by lease fencing / sequencing (never executed).
Trait Implementations§
Source§impl Clone for ControlEvent
impl Clone for ControlEvent
Source§impl Debug for ControlEvent
impl Debug for ControlEvent
impl Eq for ControlEvent
Source§impl PartialEq for ControlEvent
impl PartialEq for ControlEvent
impl StructuralPartialEq for ControlEvent
Auto Trait Implementations§
impl Freeze for ControlEvent
impl RefUnwindSafe for ControlEvent
impl Send for ControlEvent
impl Sync for ControlEvent
impl Unpin for ControlEvent
impl UnsafeUnpin for ControlEvent
impl UnwindSafe for ControlEvent
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