pub struct AuditSignal {
pub signal_type: AuditSignalType,
pub severity: Severity,
}Expand description
A single audit event emitted by a sanitizer subsystem.
Carries the minimum information needed by TrajectoryRiskAccumulator::ingest.
No heap allocation — both fields are Copy.
Fields§
§signal_type: AuditSignalTypeCategory of the detected signal.
severity: SeveritySeverity of the detected signal.
Implementations§
Source§impl AuditSignal
impl AuditSignal
Sourcepub const fn new(signal_type: AuditSignalType, severity: Severity) -> Self
pub const fn new(signal_type: AuditSignalType, severity: Severity) -> Self
Construct a new audit signal.
Trait Implementations§
Source§impl Clone for AuditSignal
impl Clone for AuditSignal
Source§fn clone(&self) -> AuditSignal
fn clone(&self) -> AuditSignal
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 AuditSignal
impl Debug for AuditSignal
impl Copy for AuditSignal
Auto Trait Implementations§
impl Freeze for AuditSignal
impl RefUnwindSafe for AuditSignal
impl Send for AuditSignal
impl Sync for AuditSignal
impl Unpin for AuditSignal
impl UnsafeUnpin for AuditSignal
impl UnwindSafe for AuditSignal
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