pub struct ControlServer { /* private fields */ }Expand description
A live control channel. Answers status until dropped.
Dropping it stops the listener thread and unlinks the socket file, so the
next run of the same process binds cleanly. Leaking it (std::mem::forget,
or a let _ = binding that drops immediately — use let _guard =) leaves
a stale socket file behind, which the next serve_at will clear.
Implementations§
Trait Implementations§
Source§impl Debug for ControlServer
impl Debug for ControlServer
Source§impl Drop for ControlServer
impl Drop for ControlServer
Auto Trait Implementations§
impl !RefUnwindSafe for ControlServer
impl !UnwindSafe for ControlServer
impl Freeze for ControlServer
impl Send for ControlServer
impl Sync for ControlServer
impl Unpin for ControlServer
impl UnsafeUnpin for ControlServer
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