pub struct Agent { /* private fields */ }Implementations§
Source§impl Agent
impl Agent
pub fn new( planner: Box<dyn Planner>, fw: SharedFramework, target: impl Into<String>, max_risk: RiskLevel, ) -> Self
pub fn set_approved(&mut self, v: bool)
pub fn set_plan_approver(&mut self, approver: Box<dyn PlanApprover>)
pub async fn run(&mut self) -> Result<CampaignResult>
Auto Trait Implementations§
impl !RefUnwindSafe for Agent
impl !UnwindSafe for Agent
impl Freeze for Agent
impl Send for Agent
impl Sync for Agent
impl Unpin for Agent
impl UnsafeUnpin for Agent
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