pub struct App { /* private fields */ }Expand description
CLI application
Implementations§
Source§impl App
impl App
Sourcepub fn new() -> Result<Self, RtaskError>
pub fn new() -> Result<Self, RtaskError>
Create a new app from configuration file
Sourcepub fn with_config_file(path: PathBuf) -> Result<Self, RtaskError>
pub fn with_config_file(path: PathBuf) -> Result<Self, RtaskError>
Create app with a specific config file
Sourcepub fn run(self) -> Result<(), RtaskError>
pub fn run(self) -> Result<(), RtaskError>
Run the application with command line arguments
Auto Trait Implementations§
impl Freeze for App
impl !RefUnwindSafe for App
impl Send for App
impl Sync for App
impl Unpin for App
impl !UnwindSafe for App
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