Struct termprogress::silent::Silent

source ·
pub struct Silent;
Expand description

An implementor for the Display, ProgressBar, Spinner, and WithTitle that does nothing.

It also implements Display::println() and Display::eprintln() to do nothing as well.

Trait Implementations§

source§

impl Debug for Silent

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Silent

source§

fn println(&self, _: &str)

Blank then print a line, and redisplay.
source§

fn eprintln(&self, _: &str)

Blank then print a line std stderr, and redisplay.
source§

fn refresh(&self)

Refresh the display
source§

fn blank(&self)

Blank the display
source§

fn get_title(&self) -> &str

Get the title for this display
source§

fn set_title(&mut self, _: &str)

Set the title for this display
source§

fn update_dimensions(&mut self, _: usize)

Update the max size if needed
source§

impl ProgressBar for Silent

source§

fn set_progress(&mut self, _: f64)

source§

fn get_progress(&self) -> f64

source§

impl Spinner for Silent

source§

fn bump(&mut self)

Cause the spinner to increment once.
source§

impl WithTitle for Silent

source§

fn with_title(self, _: impl AsRef<str>) -> Self

Add a title to this indicator.
source§

fn add_title(&mut self, _: impl AsRef<str>)

Add a title to this indicator.
source§

fn update(&mut self)

source§

fn complete(self)

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.