pub struct Agent {
pub config: AgentConfig,
pub cookies: Vec<Cookie>,
pub domain: String,
}Fields§
§config: AgentConfig§domain: StringImplementations§
Source§impl Agent
impl Agent
pub fn new(config: AgentConfig, cookies: Vec<Cookie>, domain: String) -> Self
pub fn command(&self) -> &str
pub fn args(&self) -> &[String]
pub async fn check_limit(&self) -> Result<AgentLimit, Box<dyn Error>>
pub fn execute(&self, extra_args: &[String]) -> Result<ExitStatus>
Auto Trait Implementations§
impl Freeze for Agent
impl RefUnwindSafe for Agent
impl Send for Agent
impl Sync for Agent
impl Unpin for Agent
impl UnsafeUnpin for Agent
impl UnwindSafe 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