pub enum Action<A: ActionExt = NullActionExt> {
Show 48 variants
Select,
Deselect,
Toggle,
CycleAll,
ClearAll,
Accept,
Quit(Exit),
CyclePreview,
Preview(String),
Help(String),
SwitchPreview(Option<u8>),
SetPreview(Option<u8>),
ToggleWrap,
ToggleWrapPreview,
Execute(String),
Become(String),
Reload(String),
Print(String),
SetInput(String),
SetHeader(Option<String>),
SetFooter(Option<String>),
SetPrompt(Option<String>),
Column(usize),
CycleColumn,
HistoryUp,
HistoryDown,
ChangePrompt,
ChangeQuery,
ForwardChar,
BackwardChar,
ForwardWord,
BackwardWord,
DeleteChar,
DeleteWord,
DeleteLineStart,
DeleteLineEnd,
Cancel,
InputPos(i32),
Up(Count),
Down(Count),
PreviewUp(Count),
PreviewDown(Count),
PreviewHalfPageUp,
PreviewHalfPageDown,
Pos(i32),
Redraw,
Custom(A),
Overlay(usize),
}Variants§
Select
Add item to selections
Deselect
Remove item from selections
Toggle
Toggle item in selections
CycleAll
ClearAll
Accept
Quit(Exit)
CyclePreview
Preview(String)
Help(String)
SwitchPreview(Option<u8>)
SetPreview(Option<u8>)
ToggleWrap
ToggleWrapPreview
Execute(String)
Pauses the tui display and the event loop, and invokes the handler for crate::message::Interrupt::Execute
The remaining actions in the buffer are still processed
Become(String)
Exits the tui and invokes the handler for crate::message::Interrupt::Become
Reload(String)
Restarts the matcher-worker and invokes the handler for crate::message::Interrupt::Reload
Print(String)
Invokes the handler for crate::message::Interrupt::Print
See also: crate::Matchmaker::register_print_handler
SetInput(String)
SetHeader(Option<String>)
SetPrompt(Option<String>)
Column(usize)
CycleColumn
HistoryUp
HistoryDown
ChangePrompt
ChangeQuery
ForwardChar
BackwardChar
ForwardWord
BackwardWord
DeleteChar
DeleteWord
DeleteLineStart
DeleteLineEnd
Cancel
InputPos(i32)
Up(Count)
Down(Count)
PreviewUp(Count)
PreviewDown(Count)
PreviewHalfPageUp
PreviewHalfPageDown
Pos(i32)
Redraw
Custom(A)
Overlay(usize)
Trait Implementations§
impl<A: ActionExt> Eq for Action<A>
Auto Trait Implementations§
impl<A> Freeze for Action<A>where
A: Freeze,
impl<A> RefUnwindSafe for Action<A>where
A: RefUnwindSafe,
impl<A> Send for Action<A>
impl<A> Sync for Action<A>
impl<A> Unpin for Action<A>where
A: Unpin,
impl<A> UnwindSafe for Action<A>where
A: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> MaybeExt for T
impl<T> MaybeExt for T
Source§fn maybe_take(&mut self, maybe: Option<T>)
fn maybe_take(&mut self, maybe: Option<T>)
Merge from maybe by taking.
Source§fn maybe_clone(&mut self, maybe: &Option<T>)where
T: Clone,
fn maybe_clone(&mut self, maybe: &Option<T>)where
T: Clone,
Merge from maybe by cloning.
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more