FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    DevToolsServer

    struct · ferroui-devtools · v0.5.0

    struct DevToolsServer
    

    An explicitly started localhost listener. Keep the handle on the UI thread for the lifetime of the endpoint. Dropping it stops the listener, closes clients and removes highlights/logging. The UI thread does work only for the requests of clients: each is posted to its dispatcher.

    View source

    Members

    start

    fn start(port: u16) -> io::Result<Self>
    

    Start on 127.0.0.1. Port zero requests an available port. Must run on the UI thread after platform setup; windows opened later are discovered automatically.

    Source

    with_browser

    fn with_browser(port: u16, browser: Browser) -> io::Result<Self>
    

    Source

    local_addr

    fn local_addr(self: &Self) -> SocketAddr
    

    Source

    register

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

    Register a window from a custom lifetime, on the UI thread.

    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>
    • Drop

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.