pub struct InstallProgress<'a> { /* private fields */ }
Expand description
Struct for displaying Progress of Package Installation.
The Default
implementation mirrors apt’s.
Implementations§
Source§impl<'a> InstallProgress<'a>
impl<'a> InstallProgress<'a>
Sourcepub fn new(inner: impl DynInstallProgress + 'static) -> Self
pub fn new(inner: impl DynInstallProgress + 'static) -> Self
Create a new OpProgress Struct from a struct that implements AcquireProgress trait.
Sourcepub fn apt() -> Self
pub fn apt() -> Self
Returns a OperationProgress that outputs no data
Generally I have not found much use for displaying OpProgress
pub fn pin(&mut self) -> Pin<&mut InstallProgress<'a>>
Trait Implementations§
Source§impl<'a> Default for InstallProgress<'a>
impl<'a> Default for InstallProgress<'a>
Source§impl<'a> ExternType for InstallProgress<'a>
Impl for sending DynInstallProgress across the barrier.
impl<'a> ExternType for InstallProgress<'a>
Impl for sending DynInstallProgress across the barrier.
Auto Trait Implementations§
impl<'a> Freeze for InstallProgress<'a>
impl<'a> !RefUnwindSafe for InstallProgress<'a>
impl<'a> !Send for InstallProgress<'a>
impl<'a> !Sync for InstallProgress<'a>
impl<'a> Unpin for InstallProgress<'a>
impl<'a> !UnwindSafe for InstallProgress<'a>
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