pub struct StandardWebAttackProfile { /* private fields */ }Expand description
Validated utility-planner actions for the standard web reasoning profile.
Hosts must register the executor IDs returned by
StandardWebActionKind::executor_id before a selected command is handed
to the decision runner. Keeping executor ownership outside this profile
preserves the planner/execution boundary.
§Examples
use termivar_scanner::{AttackPlanner, StandardWebAttackProfile};
let profile = StandardWebAttackProfile::new()?;
let mut planner = AttackPlanner::new();
let installed = profile.install(&mut planner)?;
assert_eq!(installed.actions_inserted(), profile.actions().len());Implementations§
Source§impl StandardWebAttackProfile
impl StandardWebAttackProfile
Sourcepub fn new() -> Result<Self, StandardWebPlanningError>
pub fn new() -> Result<Self, StandardWebPlanningError>
Builds and validates every standard action definition.
Sourcepub fn install(
&self,
planner: &mut AttackPlanner,
) -> Result<StandardWebAttackInstallReport, StandardWebPlanningError>
pub fn install( &self, planner: &mut AttackPlanner, ) -> Result<StandardWebAttackInstallReport, StandardWebPlanningError>
Installs every action idempotently after preflighting identity conflicts.
Sourcepub fn actions(&self) -> &[AttackAction]
pub fn actions(&self) -> &[AttackAction]
Returns actions in stable declaration order.
Sourcepub fn executor_ids(&self) -> BTreeSet<&str>
pub fn executor_ids(&self) -> BTreeSet<&str>
Returns the distinct executor identities required by this profile.
Trait Implementations§
Source§impl Clone for StandardWebAttackProfile
impl Clone for StandardWebAttackProfile
Source§fn clone(&self) -> StandardWebAttackProfile
fn clone(&self) -> StandardWebAttackProfile
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 StandardWebAttackProfile
impl RefUnwindSafe for StandardWebAttackProfile
impl Send for StandardWebAttackProfile
impl Sync for StandardWebAttackProfile
impl Unpin for StandardWebAttackProfile
impl UnsafeUnpin for StandardWebAttackProfile
impl UnwindSafe for StandardWebAttackProfile
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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