Expand description
Abstractions for creating io::Write
instances.
Structs
- A writer that erases the specific
io::Write
andMakeWriter
types being used. - A type implementing
io::Write
for aMutexGuard
where the type inside theMutex
implementsio::Write
. - Combines a
MakeWriter
that returns anOptionalWriter
with anotherMakeWriter
, so that the secondMakeWriter
is used when the firstMakeWriter
returnsOptionalWriter::none
. - Combines two types implementing
MakeWriter
(orstd::io::Write
) to produce a writer that writes to bothMakeWriter
’s returned writers. - A writer intended to support
libtest
’s output capturing for use in unit tests. - A
MakeWriter
combinator that wraps aMakeWriter
with a predicate for span and eventMetadata
, so that theMakeWriter::make_writer_for
method returnsOptionalWriter::some
when the predicate returnstrue
, andOptionalWriter::none
when the predicate returnsfalse
. - A
MakeWriter
combinator that only returns an enabled writer for spans and events with metadata at or below a specified verbosityLevel
. - A
MakeWriter
combinator that only returns an enabled writer for spans and events with metadata at or above a specified verbosityLevel
.
Enums
Traits
- A type that can create
io::Write
instances. - Extension trait adding combinators for working with types implementing
MakeWriter
.
Type Aliases
- A writer which may or may not be enabled.