pub struct DevToolsServer { /* private fields */ }Expand description
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.
Implementations§
Source§impl DevToolsServer
impl DevToolsServer
Sourcepub fn start(port: u16) -> Result<Self>
pub fn start(port: u16) -> 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.
pub fn with_browser(port: u16, browser: Browser) -> Result<Self>
pub fn local_addr(&self) -> SocketAddr
Trait Implementations§
Source§impl Drop for DevToolsServer
impl Drop for DevToolsServer
Auto Trait Implementations§
impl !RefUnwindSafe for DevToolsServer
impl !Send for DevToolsServer
impl !Sync for DevToolsServer
impl !UnwindSafe for DevToolsServer
impl Freeze for DevToolsServer
impl Unpin for DevToolsServer
impl UnsafeUnpin for DevToolsServer
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more