FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    new

    fn new() -> Self
    

    Source

    register

    fn register(self: &mut Self, root: &Ref<TopLevel>) -> String
    

    Explicit registration also supports custom lifetimes. The registry retains only a weak root.

    Source

    refresh

    fn refresh(self: &mut Self)
    

    Source

    discovery

    fn discovery(self: &mut Self, port: u16) -> Value
    

    Source

    version

    fn version(port: u16) -> Value
    

    Source

    connect

    fn connect(self: &mut Self, target: Option<&str>) -> std::result::Result<u64, String>
    

    Source

    disconnect

    fn disconnect(self: &mut Self, connection: u64)
    

    Source

    handle

    fn handle(self: &mut Self, connection: u64, message: &str) -> Vec<Value>
    

    Source

    poll

    fn poll(self: &mut Self, connection: u64) -> Vec<Value>
    

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Same
    • VZip<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.