Enum DaemonToClient
pub enum DaemonToClient {
Input {
event: InputEvent,
},
StateChange {
state: ClientRunState,
},
Highlight {
on: bool,
},
Activate {
token: String,
},
Terminate {
reason: String,
},
Signal(SignalKind),
KeepAlive,
Unknown,
}Expand description
A steady-state message sent from the daemon to a client.
Adjacently tagged with a trailing DaemonToClient::Unknown so a message
kind added in a later minor version is skipped rather than fatal.
Variants§
Input
Forwarded input to replay into the client’s PTY.
Fields
§
event: InputEventThe input event to replay.
StateChange
New authoritative run-state for the client.
Fields
§
state: ClientRunStateThe state the daemon assigned to the client.
Highlight
Visual selection-highlight toggle.
Activate
Hand off focus using a window-manager activation token.
Terminate
Orderly shutdown request.
Signal(SignalKind)
Out-of-band process-group signal (Ctrl+Break, Ctrl+C).
KeepAlive
Idle liveness probe.
Unknown
A message not defined in this protocol minor version.
Trait Implementations§
§impl Clone for DaemonToClient
impl Clone for DaemonToClient
§fn clone(&self) -> DaemonToClient
fn clone(&self) -> DaemonToClient
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 more§impl Debug for DaemonToClient
impl Debug for DaemonToClient
§impl<'de> Deserialize<'de> for DaemonToClient
impl<'de> Deserialize<'de> for DaemonToClient
§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
impl Eq for DaemonToClient
§impl PartialEq for DaemonToClient
impl PartialEq for DaemonToClient
§impl Serialize for DaemonToClient
impl Serialize for DaemonToClient
impl StructuralPartialEq for DaemonToClient
Auto Trait Implementations§
impl Freeze for DaemonToClient
impl RefUnwindSafe for DaemonToClient
impl Send for DaemonToClient
impl Sync for DaemonToClient
impl Unpin for DaemonToClient
impl UnsafeUnpin for DaemonToClient
impl UnwindSafe for DaemonToClient
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