Struct puff_rs::program::commands::BasicCommand
source · pub struct BasicCommand<F: Future<Output = PuffResult<ExitCode>> + 'static> { /* private fields */ }Expand description
Expose a future to the command line.
Implementations
sourceimpl<Fut: Future<Output = PuffResult<ExitCode>> + 'static> BasicCommand<Fut>
impl<Fut: Future<Output = PuffResult<ExitCode>> + 'static> BasicCommand<Fut>
Trait Implementations
sourceimpl<F: Future<Output = PuffResult<ExitCode>> + 'static> RunnableCommand for BasicCommand<F>
impl<F: Future<Output = PuffResult<ExitCode>> + 'static> RunnableCommand for BasicCommand<F>
sourcefn cli_parser(&self) -> Command
fn cli_parser(&self) -> Command
The clap::Command that specifies the arguments and meta information.
sourcefn make_runnable(
&mut self,
_args: &ArgMatches,
_context: PuffContext
) -> Result<Runnable>
fn make_runnable(
&mut self,
_args: &ArgMatches,
_context: PuffContext
) -> Result<Runnable>
Converts parsed matches from the command line into a Runnable future.
Auto Trait Implementations
impl<F> RefUnwindSafe for BasicCommand<F>
impl<F> Send for BasicCommand<F>where
F: Send,
impl<F> Sync for BasicCommand<F>where
F: Send,
impl<F> Unpin for BasicCommand<F>where
F: Unpin,
impl<F> UnwindSafe for BasicCommand<F>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more