pub struct TerminalLogSink { /* private fields */ }Expand description
The ReportSink astrs run installs on its embedded daemon.
Turns the daemon’s upward traffic into StreamItems a printer task
consumes, without ever blocking or failing the event loop.
Implementations§
Source§impl TerminalLogSink
impl TerminalLogSink
Sourcepub fn new() -> (Self, Receiver<StreamItem>)
pub fn new() -> (Self, Receiver<StreamItem>)
Builds a sink and the receiver a printer task drains.
Trait Implementations§
Source§impl Debug for TerminalLogSink
impl Debug for TerminalLogSink
Auto Trait Implementations§
impl !Freeze for TerminalLogSink
impl RefUnwindSafe for TerminalLogSink
impl Send for TerminalLogSink
impl Sync for TerminalLogSink
impl Unpin for TerminalLogSink
impl UnsafeUnpin for TerminalLogSink
impl UnwindSafe for TerminalLogSink
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more