pub struct ServerHandle {
pub address: Option<SocketAddr>,
pub token: Option<String>,
/* private fields */
}Expand description
Dropping this handle stops accepting requests and invalidates queued work. A stdio reader blocked in the OS remains parked until EOF; it cannot execute more UI operations. This inspector-only handle can be moved to another thread after server startup.
Fields§
§address: Option<SocketAddr>§token: Option<String>Bearer token for HTTP; printed to stderr at startup, never included in tool responses.
Implementations§
Source§impl ServerHandle
impl ServerHandle
pub fn is_running(&self) -> bool
Trait Implementations§
Source§impl Drop for ServerHandle
impl Drop for ServerHandle
Auto Trait Implementations§
impl Freeze for ServerHandle
impl RefUnwindSafe for ServerHandle
impl Send for ServerHandle
impl Sync for ServerHandle
impl Unpin for ServerHandle
impl UnsafeUnpin for ServerHandle
impl UnwindSafe for ServerHandle
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
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