[−][src]Struct loading::Loading
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,