pub struct PythonCommand { /* private fields */ }Expand description
The PythonCommand.
Assigns a Python function to a command name.
Implementations
Trait Implementations
sourceimpl Clone for PythonCommand
impl Clone for PythonCommand
sourcefn clone(&self) -> PythonCommand
fn clone(&self) -> PythonCommand
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl RunnableCommand for PythonCommand
impl RunnableCommand for PythonCommand
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
) -> PuffResult<Runnable>
fn make_runnable(
&mut self,
_args: &ArgMatches,
context: PuffContext
) -> PuffResult<Runnable>
Converts parsed matches from the command line into a Runnable future.
Auto Trait Implementations
impl RefUnwindSafe for PythonCommand
impl Send for PythonCommand
impl Sync for PythonCommand
impl Unpin for PythonCommand
impl UnwindSafe for PythonCommand
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