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.
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.
with_browser
fn with_browser(port: u16, browser: Browser) -> io::Result<Self>
local_addr
fn local_addr(self: &Self) -> SocketAddr
register
fn register(self: &Self, root: &ferroui_base::Ref<ferroui_controls::TopLevel>) -> String
Register a window from a custom lifetime, on the UI thread.
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>Drop
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.