pub enum TerminalEvent {
Command {
targets: Vec<String>,
command: String,
},
}Expand description
Events emitted by MultiTerminal that the caller must react to.
Variants§
Command
The user pressed Enter with a non-empty buffer. Run command on
each pane whose id is in targets and push the response lines back
via MultiTerminal::push_line.
The widget has already echoed the command into each target pane
(as a LineKind::Command line) before this event is emitted, so
the caller only needs to append the reply.
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 moreAuto Trait Implementations§
impl Freeze for TerminalEvent
impl RefUnwindSafe for TerminalEvent
impl Send for TerminalEvent
impl Sync for TerminalEvent
impl Unpin for TerminalEvent
impl UnsafeUnpin 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