pub struct Console { /* private fields */ }
Implementations§
source§impl Console
impl Console
pub fn new(opts: ConsoleOpts) -> Console
pub fn print_resolver_opts( &self, group_opts: &ResolverGroupOpts, opts: &ResolverOpts )
pub fn print_lookup_estimates( &self, resolvers: &ResolverGroup, query: &MultiQuery )
pub fn print_download_estimates(&self, server_list_specs: &[ServerListSpec])
pub fn print_whois_estimates(&self, query: &MultiQuery)
pub fn print_partial_headers( &self, caption: &str, resolvers: &ResolverGroup, query: &MultiQuery )
sourcepub fn print_partial_results<'a, T>(
&self,
output_config: &OutputConfig,
results: &'a T,
run_time: Duration
) -> Result<()>where
T: Serialize + SummaryFormatter + Statistics<'a> + Errors,
<T as Statistics<'a>>::StatsOut: Display,
pub fn print_partial_results<'a, T>(
&self,
output_config: &OutputConfig,
results: &'a T,
run_time: Duration
) -> Result<()>where
T: Serialize + SummaryFormatter + Statistics<'a> + Errors,
<T as Statistics<'a>>::StatsOut: Display,
Print partial results in case they are not muted and output-type is not JSON
pub fn print_error_counts<E: Errors>(&self, results: &E)
pub fn print_statistics<'a, T: Statistics<'a>>( &self, data: &'a T, total_run_time: Duration )
pub fn print_finished(&self)
pub fn emphasize<T: Display>(&self, item: T)
pub fn info<T: AsRef<str>>(&self, str: T)
pub fn attention<T: AsRef<str>>(&self, str: T)
pub fn finished(&self)
pub fn failed<T: AsRef<str>>(&self, str: T)
pub fn error<T: AsRef<str>>(&self, str: T)
pub fn ok<T: AsRef<str>>(&self, str: T)
pub fn itemize<T: AsRef<str>>(&self, str: T)
pub fn not_quiet(&self) -> bool
sourcepub fn show_partial_results(&self) -> bool
pub fn show_partial_results(&self) -> bool
Check if partial results should be printed
This is true, partial_results
is set, independent of quiet
sourcepub fn show_partial_headers(&self) -> bool
pub fn show_partial_headers(&self) -> bool
Check if headers and footers for partial steps should be printed
This is true, if quiet
is not set and partial_results
is set.
sourcepub fn show_errors(&self) -> bool
pub fn show_errors(&self) -> bool
Check if detailed error counts should be printed
This is true, if quiet
is not set and show_errors
is set.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Console
impl Send for Console
impl Sync for Console
impl Unpin for Console
impl UnwindSafe for Console
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