Expand description
Abstractions for creating io::Write instances.
Structs§
- BoxMake
Writer - A writer that erases the specific
io::WriteandMakeWritertypes being used. - Mutex
Guard Writer - A type implementing
io::Writefor aMutexGuardwhere the type inside theMuteximplementsio::Write. - OrElse
- Combines a
MakeWriterthat returns anOptionalWriterwith anotherMakeWriter, so that the secondMakeWriteris used when the firstMakeWriterreturnsOptionalWriter::none. - Tee
- Combines two types implementing
MakeWriter(orstd::io::Write) to produce a writer that writes to bothMakeWriter’s returned writers. - Test
Writer - A writer intended to support
libtest’s output capturing for use in unit tests. - With
Filter - 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. - With
MaxLevel - A
MakeWritercombinator that only returns an enabled writer for spans and events with metadata at or below a specified verbosityLevel. - With
MinLevel - A
MakeWritercombinator that only returns an enabled writer for spans and events with metadata at or above a specified verbosityLevel.
Enums§
- Either
Writer - A writer that is one of two types implementing
io::Write.
Traits§
- Make
Writer - A type that can create
io::Writeinstances. - Make
Writer Ext - Extension trait adding combinators for working with types implementing
MakeWriter.
Type Aliases§
- Optional
Writer - A writer which may or may not be enabled.