[][src]Trait nu_cli::WholeStreamCommand

pub trait WholeStreamCommand: Send + Sync {
    fn name(&self) -> &str;
fn usage(&self) -> &str;
#[must_use] fn run<'life0, 'life1, 'async_trait>(
        &'life0 self,
        args: CommandArgs,
        registry: &'life1 CommandRegistry
    ) -> Pin<Box<dyn Future<Output = Result<OutputStream, ShellError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; fn signature(&self) -> Signature { ... }
fn is_binary(&self) -> bool { ... }
fn is_internal(&self) -> bool { ... }
fn examples(&self) -> Vec<Example> { ... } }

Required methods

fn name(&self) -> &str

fn usage(&self) -> &str

#[must_use]fn run<'life0, 'life1, 'async_trait>(
    &'life0 self,
    args: CommandArgs,
    registry: &'life1 CommandRegistry
) -> Pin<Box<dyn Future<Output = Result<OutputStream, ShellError>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

Loading content...

Provided methods

fn signature(&self) -> Signature

fn is_binary(&self) -> bool

fn is_internal(&self) -> bool

fn examples(&self) -> Vec<Example>

Loading content...

Implementors

Loading content...