pub struct AttackPatternDB { /* private fields */ }Expand description
Attack pattern database.
Implementations§
Source§impl AttackPatternDB
impl AttackPatternDB
Sourcepub fn all_patterns(&self) -> Vec<&AttackPattern>
pub fn all_patterns(&self) -> Vec<&AttackPattern>
Get all attack patterns.
Sourcepub fn patterns_for_chain(&self, chain: &str) -> Vec<&AttackPattern>
pub fn patterns_for_chain(&self, chain: &str) -> Vec<&AttackPattern>
Get patterns affecting a specific chain.
Sourcepub fn get_pattern(&self, id: &str) -> Option<&AttackPattern>
pub fn get_pattern(&self, id: &str) -> Option<&AttackPattern>
Get pattern by ID.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AttackPatternDB
impl RefUnwindSafe for AttackPatternDB
impl Send for AttackPatternDB
impl Sync for AttackPatternDB
impl Unpin for AttackPatternDB
impl UnsafeUnpin for AttackPatternDB
impl UnwindSafe for AttackPatternDB
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