pub struct EmptyPrinter;Expand description
A structure of empty printer.
The empty printer is dummy that doesn’t print any messages.
Implementations§
Source§impl EmptyPrinter
impl EmptyPrinter
Trait Implementations§
Source§impl Clone for EmptyPrinter
impl Clone for EmptyPrinter
Source§fn clone(&self) -> EmptyPrinter
fn clone(&self) -> EmptyPrinter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EmptyPrinter
Source§impl Debug for EmptyPrinter
impl Debug for EmptyPrinter
Source§impl Print for EmptyPrinter
impl Print for EmptyPrinter
Source§fn print_updating(&self)
fn print_updating(&self)
Prints the “Updating:” message.
Source§fn print_pre_installing(&self)
fn print_pre_installing(&self)
Prints the “Pre-installing:” message.
Source§fn print_installing(&self)
fn print_installing(&self)
Prints the “Installing:” message.
Source§fn print_pre_removing(&self)
fn print_pre_removing(&self)
Prints the “Pre-removing:” message.
Source§fn print_removing(&self)
fn print_removing(&self)
Prints the “Removing:” message.
Source§fn print_documenting(&self)
fn print_documenting(&self)
Prints the “Documenting:” message.
Source§fn print_updating_pkg_versions(&self, _name: &PkgName, _is_done: bool)
fn print_updating_pkg_versions(&self, _name: &PkgName, _is_done: bool)
Prints the “Updating package …” message.
Source§fn print_downloading_pkg_file(
&self,
_name: &PkgName,
_is_done: bool,
) -> Result<()>
fn print_downloading_pkg_file( &self, _name: &PkgName, _is_done: bool, ) -> Result<()>
Prints the “Downloading package …” message.
Source§fn print_downloading_pkg_file_with_progress(
&self,
_name: &PkgName,
_byte_count: f64,
_total_byte_count: f64,
) -> Result<()>
fn print_downloading_pkg_file_with_progress( &self, _name: &PkgName, _byte_count: f64, _total_byte_count: f64, ) -> Result<()>
Prints the “Downloading package …” message with progress.
Source§fn print_extracting_pkg_file(&self, _name: &PkgName, _is_done: bool)
fn print_extracting_pkg_file(&self, _name: &PkgName, _is_done: bool)
Prints the “Extracting package …” message.
Source§fn print_checking_dependent_version_reqs(&self, _is_done: bool)
fn print_checking_dependent_version_reqs(&self, _is_done: bool)
Prints the “Checking dependent version requirements …” message.
Source§fn print_searching_path_conflicts(&self, _is_done: bool)
fn print_searching_path_conflicts(&self, _is_done: bool)
Prints the “Searching path conflicts …” message.
Source§fn print_documenting_pkg(&self, _name: &PkgName, _is_done: bool)
fn print_documenting_pkg(&self, _name: &PkgName, _is_done: bool)
Prints the “Documenting package …” message.
Source§fn print_installing_pkg(&self, _name: &PkgName, _is_done: bool)
fn print_installing_pkg(&self, _name: &PkgName, _is_done: bool)
Prints the “Installing package …” message.
Source§fn print_removing_pkg(&self, _name: &PkgName, _is_done: bool)
fn print_removing_pkg(&self, _name: &PkgName, _is_done: bool)
Prints the “Removing package …” message.
Source§fn print_removing_pkg_doc(&self, _name: &PkgName, _is_done: bool)
fn print_removing_pkg_doc(&self, _name: &PkgName, _is_done: bool)
Prints the “Removing package documentation …” message.
Source§fn print_cleaning_after_install(&self, _is_done: bool)
fn print_cleaning_after_install(&self, _is_done: bool)
Prints the “Cleaning after installation …” message.
Source§fn print_cleaning_before_removal(&self, _is_done: bool)
fn print_cleaning_before_removal(&self, _is_done: bool)
Prints the “Cleaning before removal …” messgage.
Source§fn print_cleaning_after_error(&self, _is_done: bool)
fn print_cleaning_after_error(&self, _is_done: bool)
Prints the “Cleaning after error …” message.
Source§fn print_cleaning(&self, _is_done: bool)
fn print_cleaning(&self, _is_done: bool)
Prints the “Cleaning …” message.
Source§fn print_lf_for_error(&self)
fn print_lf_for_error(&self)
Prints the newline character for an occurred error.
Source§fn eprint_error(&self, _err: &Error)
fn eprint_error(&self, _err: &Error)
Prints the error.
Auto Trait Implementations§
impl Freeze for EmptyPrinter
impl RefUnwindSafe for EmptyPrinter
impl Send for EmptyPrinter
impl Sync for EmptyPrinter
impl Unpin for EmptyPrinter
impl UnsafeUnpin for EmptyPrinter
impl UnwindSafe for EmptyPrinter
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.