pub struct ImportCommand;Expand description
Handler for /import command.
Parses the path argument (pi-compatible) and returns ImportSession result.
Trait Implementations§
Source§impl CommandHandler for ImportCommand
impl CommandHandler for ImportCommand
Source§fn execute(&self, args: &str) -> Result<CommandResult>
fn execute(&self, args: &str) -> Result<CommandResult>
Execute the command with the given arguments string.
Source§fn argument_completions(&self, _prefix: &str) -> Vec<AutocompleteItem>
fn argument_completions(&self, _prefix: &str) -> Vec<AutocompleteItem>
Get argument completions for autocomplete.
Called when user types
/cmd - returns matching autocomplete items.Auto Trait Implementations§
impl Freeze for ImportCommand
impl RefUnwindSafe for ImportCommand
impl Send for ImportCommand
impl Sync for ImportCommand
impl Unpin for ImportCommand
impl UnsafeUnpin for ImportCommand
impl UnwindSafe for ImportCommand
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