pub(super) enum WritableTarget {
WriteStdout,
PrintStdout,
WriteStderr,
PrintStderr,
Pipe(Box<Mutex<dyn Write + Send + 'static>>),
}
Expand description
Log target, either stdout
, stderr
or a custom pipe.
Same as Target
, except the pipe is wrapped in a mutex for interior mutability.
Variants§
WriteStdout
Logs will be written to standard output.
PrintStdout
Logs will be printed to standard output.
WriteStderr
Logs will be written to standard error.
PrintStderr
Logs will be printed to standard error.
Pipe(Box<Mutex<dyn Write + Send + 'static>>)
Logs will be sent to a custom pipe.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WritableTarget
impl RefUnwindSafe for WritableTarget
impl Send for WritableTarget
impl Sync for WritableTarget
impl Unpin for WritableTarget
impl UnwindSafe for WritableTarget
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