Skip to main content

Print

Trait Print 

Source
pub trait Print {
Show 22 methods // Required methods fn print_updating(&self); fn print_pre_installing(&self); fn print_installing(&self); fn print_pre_removing(&self); fn print_removing(&self); fn print_documenting(&self); fn print_updating_pkg_versions(&self, name: &PkgName, is_done: bool); fn print_downloading_pkg_file( &self, name: &PkgName, is_done: bool, ) -> Result<()>; fn print_downloading_pkg_file_with_progress( &self, name: &PkgName, byte_count: f64, total_byte_count: f64, ) -> Result<()>; fn print_extracting_pkg_file(&self, name: &PkgName, is_done: bool); fn print_checking_dependent_version_reqs(&self, is_done: bool); fn print_searching_path_conflicts(&self, is_done: bool); fn print_documenting_pkg(&self, name: &PkgName, is_done: bool); fn print_installing_pkg(&self, name: &PkgName, is_done: bool); fn print_removing_pkg(&self, name: &PkgName, is_done: bool); fn print_removing_pkg_doc(&self, name: &PkgName, is_done: bool); fn print_cleaning_after_install(&self, is_done: bool); fn print_cleaning_before_removal(&self, is_done: bool); fn print_cleaning_after_error(&self, is_done: bool); fn print_cleaning(&self, is_done: bool); fn print_lf_for_error(&self); fn eprint_error(&self, err: &Error);
}
Expand description

A printer trait.

The printer prints messages for a package manager. Some methods of printer has the done flag. the flag should be set if an operation is completed, othersise the flag should be unset.

Required Methods§

Source

fn print_updating(&self)

Prints the “Updating:” message.

Source

fn print_pre_installing(&self)

Prints the “Pre-installing:” message.

Source

fn print_installing(&self)

Prints the “Installing:” message.

Source

fn print_pre_removing(&self)

Prints the “Pre-removing:” message.

Source

fn print_removing(&self)

Prints the “Removing:” message.

Source

fn print_documenting(&self)

Prints the “Documenting:” message.

Source

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<()>

Prints the “Downloading package …” message.

Source

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)

Prints the “Extracting package …” message.

Source

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)

Prints the “Searching path conflicts …” message.

Source

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)

Prints the “Installing package …” message.

Source

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)

Prints the “Removing package documentation …” message.

Source

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)

Prints the “Cleaning before removal …” messgage.

Source

fn print_cleaning_after_error(&self, is_done: bool)

Prints the “Cleaning after error …” message.

Source

fn print_cleaning(&self, is_done: bool)

Prints the “Cleaning …” message.

Source

fn print_lf_for_error(&self)

Prints the newline character for an occurred error.

Source

fn eprint_error(&self, err: &Error)

Prints the error.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§