pub struct SupervisorReply {
pub state: SupervisorState,
pub socket: Option<String>,
pub pid: Option<u32>,
pub changed: bool,
pub uptime: Option<Duration>,
}Expand description
Reply from a SupervisorSource call. state is the
observed state after the adapter acted. socket is the
daemon’s Unix socket path when the daemon is running. Production
paths are operator-local; tests stub this to any path.
Fields§
§state: SupervisorState§socket: Option<String>§pid: Option<u32>§changed: booltrue when the call changed daemon state (started a
stopped daemon, stopped a running one). Lets the dispatch
layer render “headless: started” vs “already running” off
a single reply shape.
uptime: Option<Duration>Monotonic uptime when the daemon is running; None
otherwise. Rendered in /headless status lines.
Trait Implementations§
Source§impl Clone for SupervisorReply
impl Clone for SupervisorReply
Source§fn clone(&self) -> SupervisorReply
fn clone(&self) -> SupervisorReply
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SupervisorReply
impl Debug for SupervisorReply
Source§impl PartialEq for SupervisorReply
impl PartialEq for SupervisorReply
impl Eq for SupervisorReply
impl StructuralPartialEq for SupervisorReply
Auto Trait Implementations§
impl Freeze for SupervisorReply
impl RefUnwindSafe for SupervisorReply
impl Send for SupervisorReply
impl Sync for SupervisorReply
impl Unpin for SupervisorReply
impl UnsafeUnpin for SupervisorReply
impl UnwindSafe for SupervisorReply
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