pub enum Printer<W> {
Standard(Standard<W>),
Summary(Summary<W>),
JSON(JSON<W>),
}
Expand description
The printer used by a search worker.
The W
type parameter refers to the type of the underlying writer.
Variants§
Standard(Standard<W>)
Use the standard printer, which supports the classic grep-like format.
Summary(Summary<W>)
Use the summary printer, which supports aggregate displays of search results.
JSON(JSON<W>)
A JSON printer, which emits results in the JSON Lines format.
Implementations§
source§impl<W: WriteColor> Printer<W>
impl<W: WriteColor> Printer<W>
Trait Implementations§
Auto Trait Implementations§
impl<W> !RefUnwindSafe for Printer<W>
impl<W> Send for Printer<W>where W: Send,
impl<W> !Sync for Printer<W>
impl<W> Unpin for Printer<W>where W: Unpin,
impl<W> UnwindSafe for Printer<W>where W: UnwindSafe,
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