pub struct KillServerCommand;Expand description
Kill the current server.
Terminates the current server process. All connected clients are disconnected and unsaved changes may be lost.
Usage: :kill-server
Trait Implementations§
Source§impl Command for KillServerCommand
impl Command for KillServerCommand
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 KillServerCommand
impl CommandHandler for KillServerCommand
Source§fn execute(
&self,
runtime: &mut SessionRuntime<'_>,
_ctx: &CommandContext,
) -> CommandResult
fn execute( &self, runtime: &mut SessionRuntime<'_>, _ctx: &CommandContext, ) -> CommandResult
Execute the command. Read more
Auto Trait Implementations§
impl Freeze for KillServerCommand
impl RefUnwindSafe for KillServerCommand
impl Send for KillServerCommand
impl Sync for KillServerCommand
impl Unpin for KillServerCommand
impl UnsafeUnpin for KillServerCommand
impl UnwindSafe for KillServerCommand
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