#[non_exhaustive]pub enum BrowseProgress {
NavigationStarted {
url: String,
},
WaitingForSelector {
selector: String,
timeout_ms: u64,
},
DocumentReady {
url: String,
title: String,
status: u16,
bytes: u64,
duration_ms: u64,
},
ScreenshotCaptured {
bytes: usize,
width: u32,
duration_ms: u64,
},
PdfExported {
bytes: usize,
width: u32,
duration_ms: u64,
},
NavigationFailed {
url: String,
error: String,
},
}Expand description
Stable since 0.63.0
Structured progress event for browser tool execution.
Converted from oxibrowser_core::BrowserEvent in the backend’s drain
task. Carries structured data that would be lost if flattened to a string
via short_label(). The agent loop’s browse callback receives these and
enriches ToolCallContext with the result fields.
Defined here (not in oxibrowser_backend.rs) so the type is always
available — no feature gate needed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
A navigation has begun.
WaitingForSelector
Waiting for a CSS selector to appear.
Fields
DocumentReady
Page has finished loading and JS has executed. This is the key event — carries rich structured data.
Fields
ScreenshotCaptured
A screenshot has been captured.
Fields
PdfExported
A PDF export has completed.
Fields
Navigation failed.
Trait Implementations§
Source§impl Clone for BrowseProgress
impl Clone for BrowseProgress
Source§fn clone(&self) -> BrowseProgress
fn clone(&self) -> BrowseProgress
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 moreSource§impl Debug for BrowseProgress
impl Debug for BrowseProgress
Source§impl<'de> Deserialize<'de> for BrowseProgress
impl<'de> Deserialize<'de> for BrowseProgress
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BrowseProgress, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BrowseProgress, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for BrowseProgress
impl Serialize for BrowseProgress
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for BrowseProgress
impl RefUnwindSafe for BrowseProgress
impl Send for BrowseProgress
impl Sync for BrowseProgress
impl Unpin for BrowseProgress
impl UnsafeUnpin for BrowseProgress
impl UnwindSafe for BrowseProgress
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