pub struct DaemonEnvelope {
pub service: Option<String>,
pub op: String,
pub payload: Value,
}Expand description
A request sent to the daemon over the control socket.
Fields§
§service: Option<String>Target service name. None
(or "daemon") routes to the built-in daemon ops.
op: StringOperation name, interpreted by the target service (or the daemon).
payload: ValueOperation payload; null when the op takes no arguments.
Implementations§
Trait Implementations§
Source§impl Clone for DaemonEnvelope
impl Clone for DaemonEnvelope
Source§fn clone(&self) -> DaemonEnvelope
fn clone(&self) -> DaemonEnvelope
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DaemonEnvelope
impl Debug for DaemonEnvelope
Source§impl<'de> Deserialize<'de> for DaemonEnvelope
impl<'de> Deserialize<'de> for DaemonEnvelope
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 DaemonEnvelope
impl RefUnwindSafe for DaemonEnvelope
impl Send for DaemonEnvelope
impl Sync for DaemonEnvelope
impl Unpin for DaemonEnvelope
impl UnsafeUnpin for DaemonEnvelope
impl UnwindSafe for DaemonEnvelope
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