#[non_exhaustive]pub enum Output {
Stdout,
Stderr,
File(PathBuf),
Both(PathBuf),
}Expand description
Where log lines are written.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Stdout
Standard output only. This is the default.
Stderr
Standard error only.
Keeps stdout free for program output, which is what command-line tools usually want. The automatic colour decision checks stderr, not stdout.
File(PathBuf)
The given file only. Created if missing, appended otherwise.
Both(PathBuf)
Both standard output and the given file.
ANSI colours are kept on stdout but stripped from the file, so the on-disk log stays free of escape codes.
Trait Implementations§
impl Eq for Output
impl StructuralPartialEq for Output
Auto Trait Implementations§
impl Freeze for Output
impl RefUnwindSafe for Output
impl Send for Output
impl Sync for Output
impl Unpin for Output
impl UnsafeUnpin for Output
impl UnwindSafe for Output
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