pub struct CliProgress<T: ICommandInfo> { /* private fields */ }Expand description
Display command progress as a terminal progress bar.
Implementations§
Source§impl<T: ICommandInfo + 'static> CliProgress<T>
impl<T: ICommandInfo + 'static> CliProgress<T>
Sourcepub fn new(mediator: Arc<CommandMediator<T>>) -> Self
pub fn new(mediator: Arc<CommandMediator<T>>) -> Self
Create a new CliProgress backed by a CommandMediator.
Trait Implementations§
Source§impl<T: ICommandInfo + 'static> FromServices for CliProgress<T>
impl<T: ICommandInfo + 'static> FromServices for CliProgress<T>
Source§type Error = ResolveError
type Error = ResolveError
Error type returned by
FromServices::from_services.Source§fn from_services(
services: &ServiceProvider,
) -> Result<Self, Report<Self::Error>>
fn from_services( services: &ServiceProvider, ) -> Result<Self, Report<Self::Error>>
Create an instance by resolving dependencies from the
ServiceProvider.Auto Trait Implementations§
impl<T> !Freeze for CliProgress<T>
impl<T> !RefUnwindSafe for CliProgress<T>
impl<T> Send for CliProgress<T>
impl<T> Sync for CliProgress<T>
impl<T> Unpin for CliProgress<T>
impl<T> UnsafeUnpin for CliProgress<T>
impl<T> !UnwindSafe for CliProgress<T>
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