[][src]Struct loading::Loading

pub struct Loading { /* fields omitted */ }

Implementations

impl Loading[src]

pub fn new() -> Self[src]

Create a Loading

pub fn frame(self, frames: Vec<&'static str>) -> Self[src]

Modify the style of frame

pub fn interval(self, interval: Duration) -> Self[src]

Modify the frame refresh time. Default: 80ms

pub fn start(&mut self)[src]

Start in the terminal

pub fn end(&self)[src]

End in terminal

pub fn text<T: ToString>(&self, text: T)[src]

Modify the currently displayed text

pub fn success<T: ToString>(&self, text: T)[src]

Save the current line as 'success' and continue to load on the next line

pub fn fail<T: ToString>(&self, text: T)[src]

Save the current line as 'fail' and continue to load on the next line

pub fn warn<T: ToString>(&self, text: T)[src]

Save the current line as 'warn' and continue to load on the next line

pub fn info<T: ToString>(&self, text: T)[src]

Save the current line as 'info' and continue to load on the next line

Trait Implementations

impl Clone for Loading[src]

impl Debug for Loading[src]

Auto Trait Implementations

impl !RefUnwindSafe for Loading

impl Send for Loading

impl !Sync for Loading

impl Unpin for Loading

impl !UnwindSafe for Loading

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> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.