pub struct ModeChangeEvent {
pub previous: PtyMode,
pub current: PtyMode,
pub timestamp: Instant,
}Expand description
A mode change event with old and new states.
Fields§
§previous: PtyModeThe previous mode before the change.
current: PtyModeThe new mode after the change.
timestamp: InstantTimestamp of when the change was detected.
Trait Implementations§
Source§impl Clone for ModeChangeEvent
impl Clone for ModeChangeEvent
Source§fn clone(&self) -> ModeChangeEvent
fn clone(&self) -> ModeChangeEvent
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 ModeChangeEvent
impl Debug for ModeChangeEvent
Source§impl PartialEq for ModeChangeEvent
impl PartialEq for ModeChangeEvent
impl Copy for ModeChangeEvent
impl Eq for ModeChangeEvent
impl StructuralPartialEq for ModeChangeEvent
Auto Trait Implementations§
impl Freeze for ModeChangeEvent
impl RefUnwindSafe for ModeChangeEvent
impl Send for ModeChangeEvent
impl Sync for ModeChangeEvent
impl Unpin for ModeChangeEvent
impl UnwindSafe for ModeChangeEvent
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