pub struct CargoMoveApp { /* private fields */ }Expand description
CargoMove Application
Trait Implementations§
Source§impl Application for CargoMoveApp
impl Application for CargoMoveApp
Source§type Cmd = EntryPoint<CargoMoveCmd>
type Cmd = EntryPoint<CargoMoveCmd>
Entrypoint command for this application.
Source§type Cfg = CargoMoveConfig
type Cfg = CargoMoveConfig
Application configuration.
Source§type Paths = StandardPaths
type Paths = StandardPaths
Paths to resources within the application.
Source§fn config(&self) -> &CargoMoveConfig
fn config(&self) -> &CargoMoveConfig
Accessor for application configuration.
Source§fn register_components(
&mut self,
command: &Self::Cmd,
) -> Result<(), FrameworkError>
fn register_components( &mut self, command: &Self::Cmd, ) -> Result<(), FrameworkError>
Register all components used by this application.
If you would like to add additional components to your application beyond the default ones provided by the framework, this is the place to do so.
Source§fn after_config(&mut self, config: Self::Cfg) -> Result<(), FrameworkError>
fn after_config(&mut self, config: Self::Cfg) -> Result<(), FrameworkError>
Post-configuration lifecycle callback.
Called regardless of whether config is loaded to indicate this is the time in app lifecycle when configuration would be loaded if possible.
Source§fn logging_config(&self, command: &EntryPoint<CargoMoveCmd>) -> Config
fn logging_config(&self, command: &EntryPoint<CargoMoveCmd>) -> Config
Get logging configuration from command-line options
Source§fn run<I>(app_lock: &'static Lock<Self>, args: I)where
I: IntoIterator<Item = String>,
fn run<I>(app_lock: &'static Lock<Self>, args: I)where
I: IntoIterator<Item = String>,
Run application with the given command-line arguments and running the
appropriate
Command type.Source§fn init(&mut self, command: &Self::Cmd) -> Result<(), Error<FrameworkErrorKind>>
fn init(&mut self, command: &Self::Cmd) -> Result<(), Error<FrameworkErrorKind>>
Load this application’s configuration and initialize its components.
Source§fn framework_components(
&mut self,
command: &Self::Cmd,
) -> Result<Vec<Box<dyn Component<Self>>>, Error<FrameworkErrorKind>>
fn framework_components( &mut self, command: &Self::Cmd, ) -> Result<Vec<Box<dyn Component<Self>>>, Error<FrameworkErrorKind>>
Initialize the framework’s default set of components, potentially
sourcing terminal and logging options from command line arguments.
Source§fn load_config(
&mut self,
path: &Path,
) -> Result<Self::Cfg, Error<FrameworkErrorKind>>
fn load_config( &mut self, path: &Path, ) -> Result<Self::Cfg, Error<FrameworkErrorKind>>
Load configuration from the given path. Read more
Source§fn description(&self) -> &'static str
fn description(&self) -> &'static str
Description of this application.
Authors of this application.
Source§fn term_colors(&self, command: &Self::Cmd) -> ColorChoice
fn term_colors(&self, command: &Self::Cmd) -> ColorChoice
Color configuration for this application.
Source§fn handle_signal(
&mut self,
signal: Signal,
) -> Result<(), Error<FrameworkErrorKind>>
fn handle_signal( &mut self, signal: Signal, ) -> Result<(), Error<FrameworkErrorKind>>
Handle a Unix signal received by this application
Source§impl Debug for CargoMoveApp
impl Debug for CargoMoveApp
Auto Trait Implementations§
impl !RefUnwindSafe for CargoMoveApp
impl !UnwindSafe for CargoMoveApp
impl Freeze for CargoMoveApp
impl Send for CargoMoveApp
impl Sync for CargoMoveApp
impl Unpin for CargoMoveApp
impl UnsafeUnpin for CargoMoveApp
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