pub struct AcquireProgress<'a> { /* private fields */ }
Expand description
A struct aligning with apt
’s AcquireStatus.
This struct takes a struct with impl AcquireProgress It sets itself as the callback from C++ AcqTextStatus which will then call the functions on this struct. This struct will then forward those calls to your struct via trait methods.
Implementations§
Source§impl<'a> AcquireProgress<'a>
impl<'a> AcquireProgress<'a>
Sourcepub fn new(inner: impl DynAcquireProgress + 'a) -> Self
pub fn new(inner: impl DynAcquireProgress + 'a) -> Self
Create a new AcquireProgress Struct from a struct that implements AcquireProgress trait.
Sourcepub fn mut_status(&mut self) -> Pin<&mut AcqTextStatus>
pub fn mut_status(&mut self) -> Pin<&mut AcqTextStatus>
Sets AcquireProgress as the AcqTextStatus callback and returns a Pinned mutable reference to AcqTextStatus.
Trait Implementations§
Source§impl<'a> Default for AcquireProgress<'a>
impl<'a> Default for AcquireProgress<'a>
Source§impl<'a> ExternType for AcquireProgress<'a>
Impl for sending AcquireProgress across the barrier.
impl<'a> ExternType for AcquireProgress<'a>
Impl for sending AcquireProgress across the barrier.
Auto Trait Implementations§
impl<'a> Freeze for AcquireProgress<'a>
impl<'a> !RefUnwindSafe for AcquireProgress<'a>
impl<'a> !Send for AcquireProgress<'a>
impl<'a> !Sync for AcquireProgress<'a>
impl<'a> Unpin for AcquireProgress<'a>
impl<'a> !UnwindSafe for AcquireProgress<'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