pub struct CentralLoggerOutput { /* private fields */ }
Implementations§
Source§impl CentralLoggerOutput
impl CentralLoggerOutput
pub fn new() -> CentralLoggerOutput
pub fn add_output(&mut self, origin: Origin, msg: &str)
Sourcepub fn flush_current_origin(&mut self)
pub fn flush_current_origin(&mut self)
Flushes current lines from an origin
pub fn flush(&mut self)
pub fn println(&self, string: impl AsRef<str>) -> Result<(), Error>
pub fn logger_stdout(&self) -> LoggerStdout
Sourcepub fn start_progress_bar(
&mut self,
bar: &MultiProgress,
) -> Result<MultiProgress, ()>
pub fn start_progress_bar( &mut self, bar: &MultiProgress, ) -> Result<MultiProgress, ()>
Start a progress bar. Returns err if a progress bar has already been started. If Ok, the returned value is a clone of the multi-progress bar
Sourcepub fn end_progress_bar(&mut self)
pub fn end_progress_bar(&mut self)
End a progress bar if it exists
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CentralLoggerOutput
impl RefUnwindSafe for CentralLoggerOutput
impl Send for CentralLoggerOutput
impl Sync for CentralLoggerOutput
impl Unpin for CentralLoggerOutput
impl UnwindSafe for CentralLoggerOutput
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
Source§impl<T> InstanceOf for T
impl<T> InstanceOf for T
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