pub struct App { /* private fields */ }
Expand description
Runtime config and stdio output fns.
Implementations§
source§impl App
impl App
pub fn new(opts: &MakeOpts, interrupt: InterruptFlag) -> Self
pub fn with_test_mode( post_process: bool, bard_exe: PathBuf, interrupt: InterruptFlag ) -> Self
pub fn post_process(&self) -> bool
pub fn keep_interm(&self) -> u8
pub fn verbosity(&self) -> u8
pub fn use_color(&self) -> bool
pub fn bard_exe(&self) -> &Path
pub fn img_cache(&self) -> &ImgCache
pub fn parser_diags(&self) -> &ParserDiags
pub fn check_interrupted(&self) -> Result<(), InterruptError>
pub fn interrupt_flag(&self) -> InterruptFlag
pub fn child_wait(&self, child: &mut Child) -> Result<ExitStatus>
pub fn indent(&self, status: impl Display)
pub fn status(&self, verb: &str, status: impl Display)
sourcepub fn status_bare(&self, verb: &str, status: impl Display)
pub fn status_bare(&self, verb: &str, status: impl Display)
Like status()
, but no newline
pub fn success(&self, verb: impl Display)
pub fn warning(&self, msg: impl Display)
pub fn error(&self, error: Error)
pub fn error_generic(&self, msg: impl Display)
pub fn parser_diag(&self, diag: Diagnostic)
pub fn subprocess_output( &self, ps_lines: &mut ProcessLines, program: impl AsRef<OsStr>, status: &str ) -> Result<()>
Trait Implementations§
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§
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