pub enum DetachOutcome {
Forward(Vec<KeyEvent>),
Armed,
DetachRequested,
}Expand description
Outcome of a single DetachDetector::feed or
DetachDetector::tick call.
Forward carries the events the host should forward to the attached
pane. Armed indicates the detector has consumed the prefix and is
waiting for the follow-up key inside the timeout window.
DetachRequested indicates the chord matched and the host should
invoke its own explicit detach action; the detector itself never
performs side effects on the host’s behalf.
DetachRequested is purely a signal. The detector returns the
chord-completion verdict; the host owns whether (and how) to actually
detach the attached client. A host that ignores DetachRequested
observes no further state from the detector — the detector has
already returned to idle and is ready for a fresh chord cycle.
Variants§
Forward(Vec<KeyEvent>)
Forward this exact list of events to the attached pane.
Armed
Detector swallowed the prefix and is waiting for the follow-up.
DetachRequested
Chord matched; host should perform the detach action.
Trait Implementations§
Source§impl Clone for DetachOutcome
impl Clone for DetachOutcome
Source§fn clone(&self) -> DetachOutcome
fn clone(&self) -> DetachOutcome
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DetachOutcome
impl Debug for DetachOutcome
impl Eq for DetachOutcome
Source§impl PartialEq for DetachOutcome
impl PartialEq for DetachOutcome
Source§fn eq(&self, other: &DetachOutcome) -> bool
fn eq(&self, other: &DetachOutcome) -> bool
self and other values to be equal, and is used by ==.