pub struct CombinedIntegrity { /* private fields */ }Expand description
Combines multiple integrity mechanisms
Implementations§
Source§impl CombinedIntegrity
impl CombinedIntegrity
Sourcepub fn new(mechanisms: Vec<Box<dyn AuditIntegrity>>) -> Self
pub fn new(mechanisms: Vec<Box<dyn AuditIntegrity>>) -> Self
Create a new combined integrity checker
Sourcepub fn from_arcs(mechanisms: Vec<Arc<dyn AuditIntegrity>>) -> Self
pub fn from_arcs(mechanisms: Vec<Arc<dyn AuditIntegrity>>) -> Self
Create a new combined integrity checker from Arc-wrapped mechanisms
Trait Implementations§
Source§impl AuditIntegrity for CombinedIntegrity
impl AuditIntegrity for CombinedIntegrity
Source§fn add_integrity(&self, event: &mut AuditEvent)
fn add_integrity(&self, event: &mut AuditEvent)
Add integrity metadata to event
Source§fn verify(&self, event: &AuditEvent) -> bool
fn verify(&self, event: &AuditEvent) -> bool
Verify event integrity (default: always passes)
Auto Trait Implementations§
impl !RefUnwindSafe for CombinedIntegrity
impl !UnwindSafe for CombinedIntegrity
impl Forget for CombinedIntegrity
impl Freeze for CombinedIntegrity
impl Move for CombinedIntegrity
impl Send for CombinedIntegrity
impl Sync for CombinedIntegrity
impl Unpin for CombinedIntegrity
impl UnsafeUnpin for CombinedIntegrity
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