pub struct ExploitRegistry { /* private fields */ }Expand description
The exploit registry container.
Implementations§
Source§impl ExploitRegistry
impl ExploitRegistry
Sourcepub fn by_invariant(&self, invariant_id: &str) -> Vec<&Exploit>
pub fn by_invariant(&self, invariant_id: &str) -> Vec<&Exploit>
Get exploits that violated a specific invariant.
Sourcepub fn total_loss(&self) -> u64
pub fn total_loss(&self) -> u64
Get total loss across all exploits.
Trait Implementations§
Source§impl Clone for ExploitRegistry
impl Clone for ExploitRegistry
Source§fn clone(&self) -> ExploitRegistry
fn clone(&self) -> ExploitRegistry
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 moreAuto Trait Implementations§
impl Freeze for ExploitRegistry
impl RefUnwindSafe for ExploitRegistry
impl Send for ExploitRegistry
impl Sync for ExploitRegistry
impl Unpin for ExploitRegistry
impl UnsafeUnpin for ExploitRegistry
impl UnwindSafe for ExploitRegistry
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