pub struct PlainCallback { /* private fields */ }Implementations§
Source§impl PlainCallback
impl PlainCallback
pub fn new() -> Self
Sourcepub fn set_interactive(&mut self, enabled: bool)
pub fn set_interactive(&mut self, enabled: bool)
Set if user require to agree on terminal
pub fn format_size(bytes: u64) -> String
Trait Implementations§
Source§impl Callback for PlainCallback
impl Callback for PlainCallback
fn fetch_start(&mut self, initial_count: usize)
fn fetch_package_name(&mut self, pkg_name: &PackageName)
fn fetch_package_increment( &mut self, added_processed: usize, added_count: usize, )
fn fetch_end(&mut self)
fn install_prompt(&mut self, list: &PackageList) -> Result<(), Error>
fn install_check_conflict( &mut self, list: &Vec<TransactionConflict>, ) -> Result<(), Error>
fn install_extract(&mut self, remote_pkg: &RemotePackage)
fn download_start(&mut self, length: u64, file: &str)
fn download_increment(&mut self, downloaded: u64)
fn download_end(&mut self)
fn commit_start(&mut self, count: usize)
fn commit_increment(&mut self, _file: &Transaction)
fn commit_end(&mut self)
fn abort_start(&mut self, count: usize)
fn abort_increment(&mut self, _file: &Transaction)
fn abort_end(&mut self)
Source§impl Clone for PlainCallback
impl Clone for PlainCallback
Source§fn clone(&self) -> PlainCallback
fn clone(&self) -> PlainCallback
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PlainCallback
impl RefUnwindSafe for PlainCallback
impl Send for PlainCallback
impl Sync for PlainCallback
impl Unpin for PlainCallback
impl UnsafeUnpin for PlainCallback
impl UnwindSafe for PlainCallback
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