pub struct EnforcementOutcome {
pub snapshot: ChannelPressureSnapshot,
pub actions: Vec<PolicyAction>,
pub events: Vec<PolicyEvent>,
}Expand description
Result returned from a monitor update after policy enforcement runs.
Fields§
§snapshot: ChannelPressureSnapshotSnapshot of the pressure state after the monitor update.
actions: Vec<PolicyAction>Triggered policy actions for the caller to apply synchronously.
events: Vec<PolicyEvent>Typed events consumable by routing, dispatch, or observability subsystems.
Trait Implementations§
Source§impl Clone for EnforcementOutcome
impl Clone for EnforcementOutcome
Source§fn clone(&self) -> EnforcementOutcome
fn clone(&self) -> EnforcementOutcome
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 EnforcementOutcome
impl Debug for EnforcementOutcome
Source§impl PartialEq for EnforcementOutcome
impl PartialEq for EnforcementOutcome
Source§fn eq(&self, other: &EnforcementOutcome) -> bool
fn eq(&self, other: &EnforcementOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EnforcementOutcome
Auto Trait Implementations§
impl Freeze for EnforcementOutcome
impl RefUnwindSafe for EnforcementOutcome
impl Send for EnforcementOutcome
impl Sync for EnforcementOutcome
impl Unpin for EnforcementOutcome
impl UnsafeUnpin for EnforcementOutcome
impl UnwindSafe for EnforcementOutcome
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