pub struct PlainPresenter;Expand description
Default TaskPresenter used by the bare
crate::output::LiveOutputObserver::new and
crate::output::BufferedOutputObserver::new constructors.
Renders the per-line tag prefix as the historical
[project:task] byte sequence and returns None for every
summary method, so the observers emit identical bytes to the
pre-trait behaviour. The unit-struct shape carries no state:
every instance is interchangeable.
Trait Implementations§
Source§impl Clone for PlainPresenter
impl Clone for PlainPresenter
Source§fn clone(&self) -> PlainPresenter
fn clone(&self) -> PlainPresenter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PlainPresenter
impl Debug for PlainPresenter
Source§impl Default for PlainPresenter
impl Default for PlainPresenter
Source§fn default() -> PlainPresenter
fn default() -> PlainPresenter
Returns the “default value” for a type. Read more
Source§impl TaskPresenter for PlainPresenter
impl TaskPresenter for PlainPresenter
Source§fn prefix(&self, task: &TaskId) -> Vec<u8> ⓘ
fn prefix(&self, task: &TaskId) -> Vec<u8> ⓘ
Bytes that prefix each captured line of
task in live
mode. Buffered observers ignore this method; the prefix
has no role when the task’s bytes flush as a single block. Read moreSource§fn summary_completed(
&self,
_task: &TaskId,
_record: &CompletedRecord,
_duration: Duration,
) -> Option<Vec<u8>>
fn summary_completed( &self, _task: &TaskId, _record: &CompletedRecord, _duration: Duration, ) -> Option<Vec<u8>>
Source§fn summary_skipped(
&self,
_task: &TaskId,
_record: &SkipRecord,
) -> Option<Vec<u8>>
fn summary_skipped( &self, _task: &TaskId, _record: &SkipRecord, ) -> Option<Vec<u8>>
Bytes of the summary line for a task the scheduler
cascade-skipped per
EXEC-010 / EXEC-011. No duration
is associated with a skip: the task never entered the
pipeline. Read moreimpl Copy for PlainPresenter
Auto Trait Implementations§
impl Freeze for PlainPresenter
impl RefUnwindSafe for PlainPresenter
impl Send for PlainPresenter
impl Sync for PlainPresenter
impl Unpin for PlainPresenter
impl UnsafeUnpin for PlainPresenter
impl UnwindSafe for PlainPresenter
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