Enum surf_n_term::terminal::TerminalEvent [−][src]
pub enum TerminalEvent {}Show variants
Key(Key), Mouse(Mouse), CursorPosition { row: usize, col: usize, }, Resize(TerminalSize), Size(TerminalSize), DecMode { mode: DecMode, status: DecModeStatus, }, KittyImage { id: u64, error: Option<String>, }, Wake, Termcap(BTreeMap<String, Option<String>>), DeviceAttrs(BTreeSet<usize>), Raw(Vec<u8>), Color { name: TerminalColor, color: RGBA, }, Command(TerminalCommand),
Events returned by terminal
Variants
Key(Key)
Key press event
Mouse(Mouse)
Mouse event
Current cursor position
Resize(TerminalSize)
Terminal was resized
Size(TerminalSize)
Current terminal size
DEC mode status
Show fields
Fields of DecMode
mode: DecMode
status: DecModeStatus
Kitty image result
Terminal have been woken by waker object
Termcap/Terminfo repsponse to XTGETTCAP
Terminal Attributes DA1 response
Unrecognized bytes (TODO: remove Vec and just use u8)
Color
Show fields
Fields of Color
name: TerminalColor
color: RGBA
Command(TerminalCommand)
So we can use single decoder for commands and events
Trait Implementations
impl Clone for TerminalEvent
[src]
impl Clone for TerminalEvent
[src]fn clone(&self) -> TerminalEvent
[src]
fn clone(&self) -> TerminalEvent
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for TerminalEvent
[src]
impl Debug for TerminalEvent
[src]impl Hash for TerminalEvent
[src]
impl Hash for TerminalEvent
[src]impl Ord for TerminalEvent
[src]
impl Ord for TerminalEvent
[src]impl PartialEq<TerminalEvent> for TerminalEvent
[src]
impl PartialEq<TerminalEvent> for TerminalEvent
[src]fn eq(&self, other: &TerminalEvent) -> bool
[src]
fn eq(&self, other: &TerminalEvent) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &TerminalEvent) -> bool
[src]
fn ne(&self, other: &TerminalEvent) -> bool
[src]This method tests for !=
.
impl PartialOrd<TerminalEvent> for TerminalEvent
[src]
impl PartialOrd<TerminalEvent> for TerminalEvent
[src]fn partial_cmp(&self, other: &TerminalEvent) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &TerminalEvent) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Eq for TerminalEvent
[src]
impl StructuralEq for TerminalEvent
[src]
impl StructuralPartialEq for TerminalEvent
[src]
Auto Trait Implementations
impl !RefUnwindSafe for TerminalEvent
impl Send for TerminalEvent
impl Sync for TerminalEvent
impl Unpin for TerminalEvent
impl !UnwindSafe for TerminalEvent
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more