pub struct DaemonHandle {
pub local_addr: String,
pub admin_addr: Option<String>,
pub reload_flag: Arc<AtomicBool>,
pub healthy: Arc<AtomicBool>,
pub gateway: Arc<Mutex<Gateway>>,
/* private fields */
}Expand description
Daemon handle. On drop, no implicit shutdown — call
DaemonHandle::shutdown explicitly (mirrors every other
zerodds-*-bridged daemon).
Fields§
§local_addr: StringBound HTTP address (may differ from the configured listen if port 0 was asked for).
admin_addr: Option<String>Bound admin (/metrics) address, if metrics.enabled.
reload_flag: Arc<AtomicBool>SIGHUP sets this.
healthy: Arc<AtomicBool>true once the listener is up.
gateway: Arc<Mutex<Gateway>>The shared gateway — exported for tests that want to inspect or drive it directly without going through HTTP.
Implementations§
Source§impl DaemonHandle
impl DaemonHandle
Sourcepub fn stop_requested(&self) -> bool
pub fn stop_requested(&self) -> bool
Whether SIGTERM/SIGINT (or Self::shutdown) asked the daemon
to stop.
Auto Trait Implementations§
impl !RefUnwindSafe for DaemonHandle
impl !UnwindSafe for DaemonHandle
impl Freeze for DaemonHandle
impl Send for DaemonHandle
impl Sync for DaemonHandle
impl Unpin for DaemonHandle
impl UnsafeUnpin for DaemonHandle
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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