pub struct AgentBrowserBackend { /* private fields */ }Expand description
Backend that delegates browser actions to an external agent-browser CLI.
Implementations§
Source§impl AgentBrowserBackend
impl AgentBrowserBackend
Sourcepub fn new(config: AgentBrowserConfig) -> Self
pub fn new(config: AgentBrowserConfig) -> Self
Create a new backend, checking if the binary is available on PATH.
Trait Implementations§
Source§impl BrowserBackend for AgentBrowserBackend
impl BrowserBackend for AgentBrowserBackend
Source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
action: &'life1 BrowserAction,
) -> Pin<Box<dyn Future<Output = ActionResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
action: &'life1 BrowserAction,
) -> Pin<Box<dyn Future<Output = ActionResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Execute a browser action and return the result.
Source§fn is_available(&self) -> bool
fn is_available(&self) -> bool
Whether the backend is currently available (process running, connection alive).
Auto Trait Implementations§
impl Freeze for AgentBrowserBackend
impl RefUnwindSafe for AgentBrowserBackend
impl Send for AgentBrowserBackend
impl Sync for AgentBrowserBackend
impl Unpin for AgentBrowserBackend
impl UnsafeUnpin for AgentBrowserBackend
impl UnwindSafe for AgentBrowserBackend
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