Enum DaemonToClientMessage
pub enum DaemonToClientMessage {
InputRecord(INPUT_RECORD_0),
StateChange(ClientState),
Highlight(bool),
KeepAlive,
}Expand description
Daemon-to-client message variants exchanged over the named pipe.
Each variant maps to a distinct tag byte at the start of the wire
representation; see TAG_INPUT_RECORD, TAG_STATE_CHANGE,
TAG_HIGHLIGHT and TAG_KEEP_ALIVE.
Variants§
InputRecord(INPUT_RECORD_0)
Carries an [INPUT_RECORD_0] (KeyEvent) to be replayed to the
client’s console input buffer.
StateChange(ClientState)
Carries the new ClientState the daemon assigned to this client.
Highlight(bool)
Carries the new highlight flag: true while this client is the
daemon’s currently selected submenu client. Visual only; input
gating uses DaemonToClientMessage::StateChange.
KeepAlive
Empty payload sent on idle by the daemon’s pipe server to detect a closed client pipe.
Trait Implementations§
§impl Clone for DaemonToClientMessage
impl Clone for DaemonToClientMessage
§fn clone(&self) -> DaemonToClientMessage
fn clone(&self) -> DaemonToClientMessage
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 moreimpl Copy for DaemonToClientMessage
Auto Trait Implementations§
impl Freeze for DaemonToClientMessage
impl RefUnwindSafe for DaemonToClientMessage
impl Send for DaemonToClientMessage
impl Sync for DaemonToClientMessage
impl Unpin for DaemonToClientMessage
impl UnsafeUnpin for DaemonToClientMessage
impl UnwindSafe for DaemonToClientMessage
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