pub trait BrowserFacade: Send + Sync {
// Required methods
fn call<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
seat: &'life1 SessionSlot,
tool: &'life2 str,
args: Value,
) -> Pin<Box<dyn Future<Output = Result<Vec<BrowserPart>, String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn hand_off<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
seat: &'life1 SessionSlot,
reason: &'life2 str,
tab: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<HandOffEnding, String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
}Expand description
The fleet, as one tool call sees it.
Required Methods§
Sourcefn call<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
seat: &'life1 SessionSlot,
tool: &'life2 str,
args: Value,
) -> Pin<Box<dyn Future<Output = Result<Vec<BrowserPart>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn call<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
seat: &'life1 SessionSlot,
tool: &'life2 str,
args: Value,
) -> Pin<Box<dyn Future<Output = Result<Vec<BrowserPart>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Run one browser tool through the server’s fleet, answering with the parts it returned or the reason the call failed.
Sourcefn hand_off<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
seat: &'life1 SessionSlot,
reason: &'life2 str,
tab: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<HandOffEnding, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn hand_off<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
seat: &'life1 SessionSlot,
reason: &'life2 str,
tab: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<HandOffEnding, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Ask the person at a client to act in one of the seat’s browser tabs,
and wait for their word. tab is the page id the tool listed; the
fleet resolves it to the tab it raises.
No timeout. The ask dock’s own timelines say a held prompt sits for hours, and the session is meant to wait as long as it takes; the one refusal that does not wait is a stream nobody can answer on, which fails closed rather than parking the session on a prompt no view can draw.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".