pub struct GuardrailVerdict {
pub alerts: Vec<GuardrailAlert>,
pub queue_action: QueueAction,
pub recommended_level: DegradationLevel,
}Expand description
Verdict from a guardrail check, combining all subsystem results.
Fields§
§alerts: Vec<GuardrailAlert>Alerts from all guardrails that fired (may be empty).
queue_action: QueueActionQueue action recommended by queue guardrails.
recommended_level: DegradationLevelThe most aggressive degradation level recommended across all alerts.
Implementations§
Source§impl GuardrailVerdict
impl GuardrailVerdict
Sourcepub fn should_drop_frame(&self) -> bool
pub fn should_drop_frame(&self) -> bool
Whether any guardrail recommends dropping the current frame.
Sourcepub fn should_degrade(&self) -> bool
pub fn should_degrade(&self) -> bool
Whether any guardrail recommends degradation (but not frame skip).
Sourcepub fn max_severity(&self) -> Option<AlertSeverity>
pub fn max_severity(&self) -> Option<AlertSeverity>
The highest severity among all alerts, or None if clear.
Trait Implementations§
Source§impl Clone for GuardrailVerdict
impl Clone for GuardrailVerdict
Source§fn clone(&self) -> GuardrailVerdict
fn clone(&self) -> GuardrailVerdict
Returns a duplicate of the value. Read more
1.0.0 · 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 GuardrailVerdict
impl RefUnwindSafe for GuardrailVerdict
impl Send for GuardrailVerdict
impl Sync for GuardrailVerdict
impl Unpin for GuardrailVerdict
impl UnsafeUnpin for GuardrailVerdict
impl UnwindSafe for GuardrailVerdict
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