pub struct WriteQuitCommand;Expand description
Write and quit command - save and exit.
Uses re-entrant execution: calls :write first, then signals quit.
Trait Implementations§
Source§impl Clone for WriteQuitCommand
impl Clone for WriteQuitCommand
Source§fn clone(&self) -> WriteQuitCommand
fn clone(&self) -> WriteQuitCommand
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 Command for WriteQuitCommand
impl Command for WriteQuitCommand
Source§fn description(&self) -> &'static str
fn description(&self) -> &'static str
Get a human-readable description of what this command does.
Source§fn complete(&self, _partial: &str) -> Vec<String>
fn complete(&self, _partial: &str) -> Vec<String>
Get tab-completion candidates for this command’s arguments. Read more
Source§fn priority(&self) -> CommandPriority
fn priority(&self) -> CommandPriority
Registration priority (#545). Read more
Source§impl CommandHandler for WriteQuitCommand
impl CommandHandler for WriteQuitCommand
Source§fn execute(
&self,
runtime: &mut SessionRuntime<'_>,
ctx: &CommandContext,
) -> CommandResult
fn execute( &self, runtime: &mut SessionRuntime<'_>, ctx: &CommandContext, ) -> CommandResult
Execute the command. Read more
Source§impl Debug for WriteQuitCommand
impl Debug for WriteQuitCommand
impl Copy for WriteQuitCommand
Auto Trait Implementations§
impl Freeze for WriteQuitCommand
impl RefUnwindSafe for WriteQuitCommand
impl Send for WriteQuitCommand
impl Sync for WriteQuitCommand
impl Unpin for WriteQuitCommand
impl UnsafeUnpin for WriteQuitCommand
impl UnwindSafe for WriteQuitCommand
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