Enum ClientState
#[repr(u8)]pub enum ClientState {
Active = 0,
Disabled = 1,
}Expand description
Runtime state of a single client.
Authoritative state value tracked per client by the daemon and pushed to the corresponding client over the named pipe. Both ends consult this value: the daemon to gate input forwarding, the client to know its own state inside its main loop.
#[repr(u8)] so the enum round-trips through
crate::protocol::serialization::serialize_client_state /
crate::protocol::deserialization::deserialize_client_state using a
single byte.
Variants§
Active = 0
Client receives and replays all input records broadcast by the daemon.
Disabled = 1
Daemon suppresses input forwarding for this client. The client is
informed via TAG_STATE_CHANGE so it can render itself
accordingly.
Trait Implementations§
§impl Clone for ClientState
impl Clone for ClientState
§fn clone(&self) -> ClientState
fn clone(&self) -> ClientState
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 more§impl Debug for ClientState
impl Debug for ClientState
§impl PartialEq for ClientState
impl PartialEq for ClientState
impl Copy for ClientState
impl Eq for ClientState
impl StructuralPartialEq for ClientState
Auto Trait Implementations§
impl Freeze for ClientState
impl RefUnwindSafe for ClientState
impl Send for ClientState
impl Sync for ClientState
impl Unpin for ClientState
impl UnsafeUnpin for ClientState
impl UnwindSafe for ClientState
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