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, ValueReceiver)>
pub fn start(config: ServerConfig) -> Result<(Self, ValueReceiver)>
Bind a loopback port and deliver owned values through the typed ring.
Sourcepub fn start_typed(config: ServerConfig) -> Result<(Self, CommandReceiver)>
pub fn start_typed(config: ServerConfig) -> Result<(Self, CommandReceiver)>
Bind a loopback port and hand typed request pointers to the renderer.
Sourcepub fn start_typed_with_token(
config: ServerConfig,
token: impl Into<String>,
) -> Result<(Self, CommandReceiver)>
pub fn start_typed_with_token( config: ServerConfig, token: impl Into<String>, ) -> Result<(Self, CommandReceiver)>
Bind a loopback port with an authentication token supplied by the embedding process.
Sourcepub fn waker(&self) -> ServiceWaker
pub fn waker(&self) -> ServiceWaker
Handle for waking the renderer after a request has been queued.
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 !Freeze for DebugServer
impl !RefUnwindSafe for DebugServer
impl !UnwindSafe 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