pub trait Run: Any {
// Required method
fn run(&self, config: &Config<'_>) -> Result<()>;
// Provided methods
fn to_subcommands(&self) -> Option<SubcommandRun> { ... }
fn into_any(self: Box<Self>) -> Box<dyn Any>
where Self: Sized { ... }
fn as_any(&self) -> &dyn Any
where Self: Sized { ... }
fn as_any_mut(&mut self) -> &mut dyn Any
where Self: Sized { ... }
}Expand description
Runs the command or subcommand.
Required Methods§
Provided Methods§
Sourcefn to_subcommands(&self) -> Option<SubcommandRun>
fn to_subcommands(&self) -> Option<SubcommandRun>
Returns the subcommands that this command will run.
Sourcefn into_any(self: Box<Self>) -> Box<dyn Any>where
Self: Sized,
fn into_any(self: Box<Self>) -> Box<dyn Any>where
Self: Sized,
Converts the Box<dyn Run> to Box<dyn Any>.
Sourcefn as_any(&self) -> &dyn Anywhere
Self: Sized,
fn as_any(&self) -> &dyn Anywhere
Self: Sized,
Converts the &dyn Run trait object to a concrete type.
Sourcefn as_any_mut(&mut self) -> &mut dyn Anywhere
Self: Sized,
fn as_any_mut(&mut self) -> &mut dyn Anywhere
Self: Sized,
Converts the &dyn Run trait object to a mutable concrete type.
Implementors§
impl Run for Subcommand
impl Run for Build
Available on crate feature
subcommand-build only.impl Run for Clippy
Available on crate feature
subcommand-clippy only.impl Run for Dist
Available on crate feature
subcommand-dist only.impl Run for DistArchive
Available on crate feature
subcommand-dist-archive only.impl Run for DistBuild
Available on crate feature
subcommand-dist-build-* only.impl Run for DistBuildBin
Available on crate feature
subcommand-dist-build-bin only.impl Run for DistBuildCompletion
Available on crate feature
subcommand-dist-build-completion only.impl Run for DistBuildDoc
Available on crate feature
subcommand-dist-build-doc only.impl Run for DistBuildLicense
Available on crate feature
subcommand-dist-build-license only.impl Run for DistBuildMan
Available on crate feature
subcommand-dist-build-man only.impl Run for DistBuildReadme
Available on crate feature
subcommand-dist-build-readme only.impl Run for DistClean
Available on crate feature
subcommand-dist-clean only.impl Run for Doc
Available on crate feature
subcommand-doc only.impl Run for Docsrs
Available on crate feature
subcommand-docsrs only.impl Run for Exec
Available on crate feature
subcommand-exec only.impl Run for Fmt
Available on crate feature
subcommand-fmt only.impl Run for Lint
Available on crate feature
subcommand-lint only.impl Run for PreRelease
Available on crate feature
subcommand-pre-release only.impl Run for SyncRdme
Available on crate feature
subcommand-sync-rdme only.impl Run for Test
Available on crate feature
subcommand-test only.impl Run for Tidy
Available on crate feature
subcommand-tidy only.impl Run for Udeps
Available on crate feature
subcommand-udeps only.