[][src]Struct wasm_pack::progressbar::ProgressOutput

pub struct ProgressOutput { /* fields omitted */ }

Synchronized progress bar and status message printing.

Methods

impl ProgressOutput[src]

pub const fn new() -> Self[src]

Returns a new ProgressOutput

pub fn quiet(&self) -> bool[src]

Returns whether it should silence stdout or not

pub fn set_quiet(&self, quiet: bool)[src]

Causes it to silence stdout

pub fn is_log_enabled(&self, level: LogLevel) -> bool[src]

Returns whether the specified log level is enabled or not

pub fn set_log_level(&self, log_level: LogLevel)[src]

Sets the log level for wasm-pack

pub fn info(&self, message: &str)[src]

Add an informational message.

pub fn warn(&self, message: &str)[src]

Add a warning message.

pub fn error(&self, message: &str)[src]

Add an error message.

Trait Implementations

impl Default for ProgressOutput[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

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