pub struct ProgressBuilder { /* private fields */ }Expand description
Progress dialog builder.
Implementations§
Source§impl ProgressBuilder
impl ProgressBuilder
pub fn new() -> Self
pub fn title(self, title: &str) -> Self
pub fn text(self, text: &str) -> Self
pub fn percentage(self, percentage: u32) -> Self
pub fn pulsate(self, pulsate: bool) -> Self
pub fn auto_close(self, auto_close: bool) -> Self
pub fn auto_kill(self, auto_kill: bool) -> Self
pub fn colors(self, colors: &'static Colors) -> Self
pub fn width(self, width: u32) -> Self
pub fn height(self, height: u32) -> Self
pub fn no_cancel(self, no_cancel: bool) -> Self
pub fn time_remaining(self, show_time_remaining: bool) -> Self
pub fn show(self) -> Result<ProgressResult, Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProgressBuilder
impl RefUnwindSafe for ProgressBuilder
impl Send for ProgressBuilder
impl Sync for ProgressBuilder
impl Unpin for ProgressBuilder
impl UnsafeUnpin for ProgressBuilder
impl UnwindSafe for ProgressBuilder
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
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.