pub struct DebugServer { /* private fields */ }Expand description
Running server. Dropping it shuts down the listener and removes discovery.
Implementations§
Source§impl DebugServer
impl DebugServer
Sourcepub fn start(config: ServerConfig) -> Result<(Self, Receiver<ControlRequest>)>
pub fn start(config: ServerConfig) -> Result<(Self, Receiver<ControlRequest>)>
Bind a loopback port, write the descriptor, and start the server thread.
Sourcepub fn waker(&self) -> ServiceWaker
pub fn waker(&self) -> ServiceWaker
Handle for telling the server how to wake the thread that services requests. Nothing wakes until a callback is installed.
pub fn address(&self) -> SocketAddr
pub fn token(&self) -> &str
pub fn shutdown(self)
Trait Implementations§
Source§impl Drop for DebugServer
impl Drop for DebugServer
Auto Trait Implementations§
impl !RefUnwindSafe for DebugServer
impl !UnwindSafe for DebugServer
impl Freeze for DebugServer
impl Send for DebugServer
impl Sync for DebugServer
impl Unpin for DebugServer
impl UnsafeUnpin for DebugServer
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