[][src]Enum cursive_async_view::AsyncProgressState

pub enum AsyncProgressState<V: View> {
    Pending(f32),
    Error(String),
    Available(V),
}

An enum to be returned by the poll_ready callback, with additional information about the creation progress.

Variants

Pending(f32)

Indicates a not completed creation, which is still ongoing. Also reports the progress made as float value between 0 and 1.

Error(String)

Indicates a not completed creation, which cannot proceed further. Contains an error message to be displayed for the user.

Available(V)

Indicates a completed creation. Contains the new child view.

Auto Trait Implementations

impl<V> Send for AsyncProgressState<V> where
    V: Send

impl<V> Unpin for AsyncProgressState<V> where
    V: Unpin

impl<V> Sync for AsyncProgressState<V> where
    V: Sync

impl<V> RefUnwindSafe for AsyncProgressState<V> where
    V: RefUnwindSafe

impl<V> UnwindSafe for AsyncProgressState<V> where
    V: UnwindSafe

Blanket Implementations

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

impl<T> From<T> for 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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> With for T[src]

impl<T> Erased for T