[−][src]Enum cursive_async_view::AsyncState
This enum is used in the ready_poll callback to tell the async view whether the view is already available, an error occured, or is still pending.
Variants
The view of type V
is now available and ready to be owned by the async view
where it will get layouted and drawn instead of the loading animation.
Error(String)
Loading of the view failed with the given error.
The view is not available yet, try again later.
Auto Trait Implementations
impl<V> Send for AsyncState<V> where
V: Send,
V: Send,
impl<V> Unpin for AsyncState<V> where
V: Unpin,
V: Unpin,
impl<V> Sync for AsyncState<V> where
V: Sync,
V: Sync,
impl<V> RefUnwindSafe for AsyncState<V> where
V: RefUnwindSafe,
V: RefUnwindSafe,
impl<V> UnwindSafe for AsyncState<V> where
V: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> With for T
[src]
fn with<F>(self, f: F) -> Self where
F: FnOnce(&mut Self),
[src]
F: FnOnce(&mut Self),
fn try_with<E, F>(self, f: F) -> Result<Self, E> where
F: FnOnce(&mut Self) -> Result<(), E>,
[src]
F: FnOnce(&mut Self) -> Result<(), E>,
fn with_if<F>(self, condition: bool, f: F) -> Self where
F: FnOnce(&mut Self),
[src]
F: FnOnce(&mut Self),