pub struct StdPrinter { /* private fields */ }Expand description
A structure of standard printer.
The standard printer prints messages to the standard output and error messages to the standard error.
Implementations§
Source§impl StdPrinter
impl StdPrinter
Trait Implementations§
Source§impl Debug for StdPrinter
impl Debug for StdPrinter
Source§impl Print for StdPrinter
impl Print for StdPrinter
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 StdPrinter
impl RefUnwindSafe for StdPrinter
impl Send for StdPrinter
impl Sync for StdPrinter
impl Unpin for StdPrinter
impl UnsafeUnpin for StdPrinter
impl UnwindSafe for StdPrinter
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> 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.