Enum ControlModeState
enum ControlModeState {
Inactive,
Initiated,
Active,
EnableDisableSubmenu {
highlighted_pid: Option<u32>,
anchor_col: Option<i32>,
},
}Expand description
Enum of all possible control mode states.
Variants§
Inactive
Controle mode is inactive.
Initiated
One of the keys required for the control mode key combination is currently being pressed.
Active
All required keys for the control mode key combination were pressed and control mode is now active.
Active control mode prevents any input records from being sent to clients.
The user opened the [e]nable/disable input submenu from
ControlModeState::Active; left only via Esc, which exits
control mode entirely. highlighted_pid is the currently selected
client (None when the cluster is empty); tracking by PID survives
background-monitor retains while the submenu is open.
anchor_col is the upper-grid column carried across vertical
moves so a Down + Up roundtrip across the partial-last-row
boundary returns to the start cell. None while
highlighted_pid is None.
Trait Implementations§
§impl Debug for ControlModeState
impl Debug for ControlModeState
§impl PartialEq for ControlModeState
impl PartialEq for ControlModeState
impl StructuralPartialEq for ControlModeState
Auto Trait Implementations§
impl Freeze for ControlModeState
impl RefUnwindSafe for ControlModeState
impl Send for ControlModeState
impl Sync for ControlModeState
impl Unpin for ControlModeState
impl UnsafeUnpin for ControlModeState
impl UnwindSafe for ControlModeState
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.