Browser
struct · ferroui-devtools · v0.5.0
struct Browser
UI-thread target registry and flattened CDP session router, shared by the native server and browser bridge. Window and popup discovery follows the desktop application lifetime.
Members
new
fn new() -> Self
register
fn register(self: &mut Self, root: &Ref<TopLevel>) -> String
Explicit registration also supports custom lifetimes. The registry retains only a weak root.
refresh
fn refresh(self: &mut Self)
discovery
fn discovery(self: &mut Self, port: u16) -> Value
version
fn version(port: u16) -> Value
connect
fn connect(self: &mut Self, target: Option<&str>) -> std::result::Result<u64, String>
disconnect
fn disconnect(self: &mut Self, connection: u64)
handle
fn handle(self: &mut Self, connection: u64, message: &str) -> Vec<Value>
poll
fn poll(self: &mut Self, connection: u64) -> Vec<Value>
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEitherSameVZip<V>CastableFrom<ST, Uninit, Uninit>CastableFrom<ST, Initialized, Initialized>Read<Exclusive, BecauseExclusive>Default
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.