pub enum DaemonResponse {
Status {
running: bool,
pid: u32,
uptime_seconds: u64,
},
Stopping,
Stats(DaemonStats),
Pong,
CurrentSession {
session_id: Option<String>,
},
Error {
message: String,
},
}Expand description
Responses from the daemon to IPC commands.
Variants§
Status
Status response indicating daemon is running.
Stopping
Acknowledgment that stop command was received.
Stats(DaemonStats)
Runtime statistics.
Pong
Ping response.
CurrentSession
Current session response.
Error
Error response.
Trait Implementations§
Source§impl Clone for DaemonResponse
impl Clone for DaemonResponse
Source§fn clone(&self) -> DaemonResponse
fn clone(&self) -> DaemonResponse
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 DaemonResponse
impl Debug for DaemonResponse
Source§impl<'de> Deserialize<'de> for DaemonResponse
impl<'de> Deserialize<'de> for DaemonResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DaemonResponse
impl RefUnwindSafe for DaemonResponse
impl Send for DaemonResponse
impl Sync for DaemonResponse
impl Unpin for DaemonResponse
impl UnwindSafe for DaemonResponse
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