Enum ClientToDaemon
pub enum ClientToDaemon {
Ready {
child_pid: u32,
window: WindowHandle,
},
WindowChanged {
window: WindowHandle,
},
ChildExited {
code: i32,
},
KeepAlive,
Unknown,
}Expand description
A message sent from a client to the daemon.
Adjacently tagged with a trailing ClientToDaemon::Unknown so a message
kind added in a later minor version is skipped rather than fatal.
Variants§
Ready
Client is up; reports the child process and its window handle.
Fields
§
window: WindowHandleThe client’s window handle.
WindowChanged
The client’s window identity changed.
Fields
§
window: WindowHandleThe new window handle.
ChildExited
The child process exited.
KeepAlive
Idle liveness probe.
Unknown
A message not defined in this protocol minor version.
Trait Implementations§
§impl Clone for ClientToDaemon
impl Clone for ClientToDaemon
§fn clone(&self) -> ClientToDaemon
fn clone(&self) -> ClientToDaemon
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 ClientToDaemon
impl Debug for ClientToDaemon
§impl<'de> Deserialize<'de> for ClientToDaemon
impl<'de> Deserialize<'de> for ClientToDaemon
§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 PartialEq for ClientToDaemon
impl PartialEq for ClientToDaemon
§impl Serialize for ClientToDaemon
impl Serialize for ClientToDaemon
impl StructuralPartialEq for ClientToDaemon
Auto Trait Implementations§
impl Freeze for ClientToDaemon
impl RefUnwindSafe for ClientToDaemon
impl Send for ClientToDaemon
impl Sync for ClientToDaemon
impl Unpin for ClientToDaemon
impl UnsafeUnpin for ClientToDaemon
impl UnwindSafe for ClientToDaemon
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