Enum tracing_configuration::Writer
source · pub enum Writer {
Null,
Stdout,
Stderr,
File {
path: PathBuf,
behaviour: FileOpenBehaviour,
non_blocking: Option<NonBlocking>,
},
Rolling {
directory: PathBuf,
rolling: Option<Rolling>,
non_blocking: Option<NonBlocking>,
},
}
Expand description
Which writer to use.
Variants§
Null
No writer.
Stdout
Use io::stdout
.
Stderr
Use io::stderr
.
File
Write to a File
.
Fields
§
behaviour: FileOpenBehaviour
§
non_blocking: Option<NonBlocking>
Wrap the writer in a tracing_appender::non_blocking::NonBlocking
.
Rolling
Fields
§
non_blocking: Option<NonBlocking>
Wrap the writer in a tracing_appender::non_blocking::NonBlocking
.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Writer
impl<'de> Deserialize<'de> for Writer
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for Writer
impl Ord for Writer
source§impl PartialEq for Writer
impl PartialEq for Writer
source§impl PartialOrd for Writer
impl PartialOrd for Writer
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Writer
impl StructuralPartialEq for Writer
Auto Trait Implementations§
impl Freeze for Writer
impl RefUnwindSafe for Writer
impl Send for Writer
impl Sync for Writer
impl Unpin for Writer
impl UnwindSafe for Writer
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