pub enum HostEventClass {
Show 15 variants
AttachTransition,
InputAccessibility,
InputComposition,
InputCompositionTrace,
InputFocus,
InputKey,
InputMouse,
InputPaste,
InputTouch,
InputVtBytes,
InputWheel,
TerminalProgress,
TerminalReplyBytes,
UiAccessibilityAnnouncement,
UiLinkClick,
}Expand description
Canonical, host-observable event classes (eventSchemaVersion = 1.0.0).
The wire strings and their order match the Host Event Taxonomy section of
docs/spec/frankenterm-web-api.md exactly. The list is monotonically sorted
by wire string, which the contract guarantees for apiContract().eventTypes.
Variants§
AttachTransition
attach.transition — websocket attach state-machine transitions.
InputAccessibility
input.accessibility — assistive-technology originated input.
InputComposition
input.composition — IME composition lifecycle.
InputCompositionTrace
input.composition_trace — IME rewrite/diagnostic trace.
InputFocus
input.focus — focus gained/lost.
InputKey
input.key — key press/release.
InputMouse
input.mouse — mouse button/motion.
InputPaste
input.paste — bracketed paste payload.
InputTouch
input.touch — touch input.
InputVtBytes
input.vt_bytes — raw VT byte chunk forwarded to the PTY.
InputWheel
input.wheel — wheel/scroll input.
TerminalProgress
terminal.progress — OSC 9;4 progress signal.
TerminalReplyBytes
terminal.reply_bytes — terminal-generated reply bytes.
UiAccessibilityAnnouncement
ui.accessibility_announcement — live-region announcement for the host.
UiLinkClick
ui.link_click — host-actionable hyperlink activation.
Implementations§
Source§impl HostEventClass
impl HostEventClass
Sourcepub const ALL: [HostEventClass; 15]
pub const ALL: [HostEventClass; 15]
All event classes in canonical (sorted) order.
Sourcepub const fn as_str(self) -> &'static str
pub const fn as_str(self) -> &'static str
Canonical dotted wire string (stable for the 1.x schema line).
Sourcepub fn from_wire(value: &str) -> Option<Self>
pub fn from_wire(value: &str) -> Option<Self>
Parse a wire string back to its class (inverse of Self::as_str).
Trait Implementations§
Source§impl Clone for HostEventClass
impl Clone for HostEventClass
Source§fn clone(&self) -> HostEventClass
fn clone(&self) -> HostEventClass
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for HostEventClass
Source§impl Debug for HostEventClass
impl Debug for HostEventClass
Source§impl Display for HostEventClass
impl Display for HostEventClass
impl Eq for HostEventClass
Source§impl Hash for HostEventClass
impl Hash for HostEventClass
Source§impl Ord for HostEventClass
impl Ord for HostEventClass
Source§fn cmp(&self, other: &HostEventClass) -> Ordering
fn cmp(&self, other: &HostEventClass) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for HostEventClass
impl PartialEq for HostEventClass
Source§fn eq(&self, other: &HostEventClass) -> bool
fn eq(&self, other: &HostEventClass) -> bool
self and other values to be equal, and is used by ==.Source§impl PartialOrd for HostEventClass
impl PartialOrd for HostEventClass
impl StructuralPartialEq for HostEventClass
Auto Trait Implementations§
impl Freeze for HostEventClass
impl RefUnwindSafe for HostEventClass
impl Send for HostEventClass
impl Sync for HostEventClass
impl Unpin for HostEventClass
impl UnsafeUnpin for HostEventClass
impl UnwindSafe for HostEventClass
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.