pub enum PolicyEvent {
Action {
channel_id: String,
action: PolicyAction,
triggered_at: SystemTime,
},
ScaleConsumer {
signal: ScaleSignal,
triggered_at: SystemTime,
},
}Expand description
Typed pressure policy event emitted by the enforcer.
Variants§
Action
A policy action became active for a channel pressure update.
Fields
§
action: PolicyActionAction selected by the channel policy configuration.
§
triggered_at: SystemTimeWall-clock time when the enforcer emitted this event.
ScaleConsumer
A scale-consumer policy emitted a scaling signal for external orchestration.
Fields
§
signal: ScaleSignalSignal payload for the external orchestrator.
§
triggered_at: SystemTimeWall-clock time when the enforcer emitted this event.
Trait Implementations§
Source§impl Clone for PolicyEvent
impl Clone for PolicyEvent
Source§fn clone(&self) -> PolicyEvent
fn clone(&self) -> PolicyEvent
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 moreSource§impl Debug for PolicyEvent
impl Debug for PolicyEvent
Source§impl PartialEq for PolicyEvent
impl PartialEq for PolicyEvent
Source§fn eq(&self, other: &PolicyEvent) -> bool
fn eq(&self, other: &PolicyEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PolicyEvent
Auto Trait Implementations§
impl Freeze for PolicyEvent
impl RefUnwindSafe for PolicyEvent
impl Send for PolicyEvent
impl Sync for PolicyEvent
impl Unpin for PolicyEvent
impl UnsafeUnpin for PolicyEvent
impl UnwindSafe for PolicyEvent
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