pub struct GuardrailSnapshot {
pub memory_bytes: usize,
pub memory_peak_bytes: usize,
pub memory_usage_fraction: f64,
pub memory_soft_violations: u32,
pub memory_hard_violations: u32,
pub queue_depth: u32,
pub queue_peak_depth: u32,
pub queue_total_drops: u64,
pub queue_total_backpressure: u64,
pub frames_checked: u64,
pub frames_with_alerts: u64,
}Expand description
Diagnostic snapshot of guardrail state.
All fields are Copy — no allocations. Suitable for structured logging
or debug overlay.
Fields§
§memory_bytes: usizeCurrent memory usage in bytes.
memory_peak_bytes: usizePeak memory usage in bytes.
memory_usage_fraction: f64Fraction of soft memory limit used.
memory_soft_violations: u32Frames exceeding soft memory limit.
memory_hard_violations: u32Frames exceeding hard memory limit.
queue_depth: u32Current queue depth.
queue_peak_depth: u32Peak queue depth.
queue_total_drops: u64Total frames dropped from queue.
queue_total_backpressure: u64Total backpressure events.
frames_checked: u64Total frames checked.
frames_with_alerts: u64Total frames with alerts.
Implementations§
Trait Implementations§
Source§impl Clone for GuardrailSnapshot
impl Clone for GuardrailSnapshot
Source§fn clone(&self) -> GuardrailSnapshot
fn clone(&self) -> GuardrailSnapshot
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 moreSource§impl Debug for GuardrailSnapshot
impl Debug for GuardrailSnapshot
Source§impl PartialEq for GuardrailSnapshot
impl PartialEq for GuardrailSnapshot
impl Copy for GuardrailSnapshot
impl StructuralPartialEq for GuardrailSnapshot
Auto Trait Implementations§
impl Freeze for GuardrailSnapshot
impl RefUnwindSafe for GuardrailSnapshot
impl Send for GuardrailSnapshot
impl Sync for GuardrailSnapshot
impl Unpin for GuardrailSnapshot
impl UnsafeUnpin for GuardrailSnapshot
impl UnwindSafe for GuardrailSnapshot
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