Struct tectonic_status_base::plain::PlainStatusBackend
source · pub struct PlainStatusBackend { /* private fields */ }
Expand description
A basic status-reporting backend that prints messages via stdio.
Implementations§
source§impl PlainStatusBackend
impl PlainStatusBackend
sourcepub fn new(chatter: ChatterLevel) -> Self
pub fn new(chatter: ChatterLevel) -> Self
Create a new backend with the specified chatter level.
To use the default chatter level, you can also use Self::default
.
sourcepub fn always_stderr(&mut self, setting: bool) -> &mut Self
pub fn always_stderr(&mut self, setting: bool) -> &mut Self
Configure this backend to always print to the standard error stream.
This setting can be useful if you have a program that is printing output to standard output that needs to be machine-parsable. By activating it you can ensure that any status reports don’t get mixed in with your stdout output.
Trait Implementations§
source§impl Clone for PlainStatusBackend
impl Clone for PlainStatusBackend
source§fn clone(&self) -> PlainStatusBackend
fn clone(&self) -> PlainStatusBackend
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PlainStatusBackend
impl Debug for PlainStatusBackend
source§impl Default for PlainStatusBackend
impl Default for PlainStatusBackend
source§fn default() -> PlainStatusBackend
fn default() -> PlainStatusBackend
Returns the “default value” for a type. Read more
source§impl StatusBackend for PlainStatusBackend
impl StatusBackend for PlainStatusBackend
source§fn report(
&mut self,
kind: MessageKind,
args: Arguments<'_>,
err: Option<&Error>
)
fn report( &mut self, kind: MessageKind, args: Arguments<'_>, err: Option<&Error> )
Report a message to the status backend. Read more
source§fn report_error(&mut self, err: &Error)
fn report_error(&mut self, err: &Error)
Report an error to the status backend. Read more
source§fn note_highlighted(&mut self, before: &str, highlighted: &str, after: &str)
fn note_highlighted(&mut self, before: &str, highlighted: &str, after: &str)
Issue a note-level status, idealy highlighting a particular phrase. Read more
source§fn dump_error_logs(&mut self, output: &[u8])
fn dump_error_logs(&mut self, output: &[u8])
This is used to print TeX engine logs after it encountered errors. This
should print the provided output, which may span many lines, with some
clear delineation.
Auto Trait Implementations§
impl RefUnwindSafe for PlainStatusBackend
impl Send for PlainStatusBackend
impl Sync for PlainStatusBackend
impl Unpin for PlainStatusBackend
impl UnwindSafe for PlainStatusBackend
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