pub enum InfoMessage {
Message(String),
Pager(String),
}Expand description
Information to show the user at the bottom of the screen after an action.
Variants§
Message(String)
Print a simple, informational message on the status line.
Pager(String)
Use an interactive pager to show the user some information.
If you’re using keybindings, then you can handle this using Pager and BindingMachine::run_dialog.
Trait Implementations§
Source§impl Clone for InfoMessage
impl Clone for InfoMessage
Source§fn clone(&self) -> InfoMessage
fn clone(&self) -> InfoMessage
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 InfoMessage
impl Debug for InfoMessage
Source§impl Display for InfoMessage
impl Display for InfoMessage
Source§impl From<&str> for InfoMessage
impl From<&str> for InfoMessage
Source§impl From<String> for InfoMessage
impl From<String> for InfoMessage
Source§impl PartialEq for InfoMessage
impl PartialEq for InfoMessage
impl Eq for InfoMessage
impl StructuralPartialEq for InfoMessage
Auto Trait Implementations§
impl Freeze for InfoMessage
impl RefUnwindSafe for InfoMessage
impl Send for InfoMessage
impl Sync for InfoMessage
impl Unpin for InfoMessage
impl UnwindSafe for InfoMessage
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