pub struct App {
pub options: Options,
/* private fields */
}Fields
options: OptionsImplementations
sourceimpl App
impl App
pub fn new(parser: Box<dyn OptionsParser>, options: Options) -> Self
pub fn run(args: &[String]) -> Result<(), ShellError>
pub fn main(&self, argv: &[String]) -> Result<(), ShellError>
pub fn commands(&self) -> Option<Result<String, ShellError>>
pub fn perf(&self) -> bool
pub fn help(&self) -> bool
pub fn version(&self) -> bool
pub fn scripts(&self) -> Option<Vec<Result<String, ShellError>>>
pub fn takes_stdin(&self) -> bool
pub fn config(&self) -> Option<String>
pub fn develop(&self) -> Option<Vec<Result<String, ShellError>>>
pub fn debug(&self) -> Option<Vec<Result<String, ShellError>>>
pub fn loglevel(&self) -> Option<Result<String, ShellError>>
pub fn testbin(&self) -> Option<Result<String, ShellError>>
pub fn skip_plugins(&self) -> bool
pub fn save_history(&self) -> bool
pub fn parse(&self, args: &str) -> Result<(), ShellError>
Auto Trait Implementations
impl !RefUnwindSafe for App
impl !Send for App
impl !Sync for App
impl Unpin for App
impl !UnwindSafe for App
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more