pub struct StopCommand;Implementations§
Source§impl StopCommand
impl StopCommand
Trait Implementations§
Source§impl Command for StopCommand
impl Command for StopCommand
fn name(&self) -> &'static str
fn description(&self) -> &'static str
fn matches(&self, command: &str) -> bool
fn execute_sync(&self, args: &[&str]) -> Result<String>
fn priority(&self) -> u8
fn execute<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
args: &'life1 [&'life2 str],
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn is_available(&self) -> bool
Source§impl Debug for StopCommand
impl Debug for StopCommand
Source§impl Default for StopCommand
impl Default for StopCommand
Source§fn default() -> StopCommand
fn default() -> StopCommand
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StopCommand
impl RefUnwindSafe for StopCommand
impl Send for StopCommand
impl Sync for StopCommand
impl Unpin for StopCommand
impl UnwindSafe for StopCommand
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 more