pub enum TerminalEvent {
Resize(TerminalSize),
Input(TerminalInput),
FdReady {
fd: RawFd,
readable: bool,
},
}Expand description
Terminal event returned by Terminal::poll_event().
Variants§
Resize(TerminalSize)
Terminal resize event.
Input(TerminalInput)
User input event.
FdReady
Custom file descriptor is ready for I/O.
Fields
§
fd: RawFdThe file descriptor that is ready for I/O operations.
This is the raw file descriptor number that was passed to
Terminal::poll_event() in either the additional_readfds or
additional_writefds parameters and is now ready for reading or writing.
Trait Implementations§
Source§impl Clone for TerminalEvent
impl Clone for TerminalEvent
Source§fn clone(&self) -> TerminalEvent
fn clone(&self) -> TerminalEvent
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 moreSource§impl Debug for TerminalEvent
impl Debug for TerminalEvent
Source§impl Hash for TerminalEvent
impl Hash for TerminalEvent
Source§impl Ord for TerminalEvent
impl Ord for TerminalEvent
Source§fn cmp(&self, other: &TerminalEvent) -> Ordering
fn cmp(&self, other: &TerminalEvent) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TerminalEvent
impl PartialEq for TerminalEvent
Source§impl PartialOrd for TerminalEvent
impl PartialOrd for TerminalEvent
impl Copy for TerminalEvent
impl Eq for TerminalEvent
impl StructuralPartialEq for TerminalEvent
Auto Trait Implementations§
impl Freeze for TerminalEvent
impl RefUnwindSafe for TerminalEvent
impl Send for TerminalEvent
impl Sync for TerminalEvent
impl Unpin for TerminalEvent
impl UnwindSafe for TerminalEvent
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