Expand description
Abstractions for creating io::Write instances.
Structs§
- A writer that erases the specific
io::WriteandMakeWritertypes being used. - A type implementing
io::Writefor aMutexGuardwhere the type inside theMuteximplementsio::Write. - Combines a
MakeWriterthat returns anOptionalWriterwith anotherMakeWriter, so that the secondMakeWriteris used when the firstMakeWriterreturnsOptionalWriter::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
MakeWritercombinator that wraps aMakeWriterwith a predicate for span and eventMetadata, so that theMakeWriter::make_writer_formethod returnsOptionalWriter::somewhen the predicate returnstrue, andOptionalWriter::nonewhen the predicate returnsfalse. - A
MakeWritercombinator that only returns an enabled writer for spans and events with metadata at or below a specified verbosityLevel. - A
MakeWritercombinator 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::Writeinstances. - Extension trait adding combinators for working with types implementing
MakeWriter.
Type Aliases§
- A writer which may or may not be enabled.