pub struct LoggingControl(/* private fields */);Implementations§
Source§impl LoggingControl
impl LoggingControl
pub fn in_project(&self, project: ProjectId)
pub fn in_task(&self, task: TaskId)
pub fn reset(&self)
pub fn stop_logging(&self)
pub fn start_task(&self, id: &TaskId)
pub fn end_task(&self, id: &TaskId)
Sourcepub fn start_progress_bar(
&self,
bar: &MultiProgress,
) -> Result<MultiProgress, ()>
pub fn start_progress_bar( &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(&self)
pub fn end_progress_bar(&self)
End a progress bar if it exists
Auto Trait Implementations§
impl Freeze for LoggingControl
impl RefUnwindSafe for LoggingControl
impl Send for LoggingControl
impl Sync for LoggingControl
impl Unpin for LoggingControl
impl UnwindSafe for LoggingControl
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