Struct tracing_rolling::Rolling
source · pub struct Rolling<C: Checker<W = W>, W: Write> { /* private fields */ }Implementations§
Trait Implementations§
source§impl<'a, C: Checker<W = W>, W: Write + 'a> MakeWriter<'a> for Rolling<C, W>
impl<'a, C: Checker<W = W>, W: Write + 'a> MakeWriter<'a> for Rolling<C, W>
§type Writer = RollingWriter<'a, W>
type Writer = RollingWriter<'a, W>
The concrete
io::Write implementation returned by make_writer.Auto Trait Implementations§
impl<C, W> !RefUnwindSafe for Rolling<C, W>
impl<C, W> Send for Rolling<C, W>where C: Send, W: Send,
impl<C, W> Sync for Rolling<C, W>where C: Sync, W: Send,
impl<C, W> Unpin for Rolling<C, W>where C: Unpin, W: Unpin,
impl<C, W> UnwindSafe for Rolling<C, W>where C: UnwindSafe, W: UnwindSafe,
Blanket Implementations§
source§impl<'a, M> MakeWriterExt<'a> for Mwhere
M: MakeWriter<'a>,
impl<'a, M> MakeWriterExt<'a> for Mwhere M: MakeWriter<'a>,
source§fn with_max_level(self, level: Level) -> WithMaxLevel<Self>where
Self: Sized,
fn with_max_level(self, level: Level) -> WithMaxLevel<Self>where Self: Sized,
Wraps
self and returns a MakeWriter that will only write output
for events at or below the provided verbosity Level. For instance,
Level::TRACE is considered to be _more verbosethanLevel::INFO`. Read moresource§fn with_min_level(self, level: Level) -> WithMinLevel<Self>where
Self: Sized,
fn with_min_level(self, level: Level) -> WithMinLevel<Self>where Self: Sized,
Wraps
self and returns a MakeWriter that will only write output
for events at or above the provided verbosity Level. Read moresource§fn with_filter<F>(self, filter: F) -> WithFilter<Self, F>where
Self: Sized,
F: Fn(&Metadata<'_>) -> bool,
fn with_filter<F>(self, filter: F) -> WithFilter<Self, F>where Self: Sized, F: Fn(&Metadata<'_>) -> bool,
Wraps
self with a predicate that takes a span or event’s Metadata
and returns a bool. The returned MakeWriter’s
MakeWriter::make_writer_for method will check the predicate to
determine if a writer should be produced for a given span or event. Read moresource§fn and<B>(self, other: B) -> Tee<Self, B>where
Self: Sized,
B: MakeWriter<'a>,
fn and<B>(self, other: B) -> Tee<Self, B>where Self: Sized, B: MakeWriter<'a>,
Combines
self with another type implementing MakeWriter, returning
a new MakeWriter that produces writers that write to both
outputs. Read moresource§fn or_else<W, B>(self, other: B) -> OrElse<Self, B>where
Self: MakeWriter<'a, Writer = EitherWriter<W, Sink>> + Sized,
B: MakeWriter<'a>,
W: Write,
fn or_else<W, B>(self, other: B) -> OrElse<Self, B>where Self: MakeWriter<'a, Writer = EitherWriter<W, Sink>> + Sized, B: MakeWriter<'a>, W: Write,
Combines
self with another type implementing MakeWriter, returning
a new MakeWriter that calls other’s make_writer if self’s
make_writer returns OptionalWriter::none. Read more