Enum bigml::wait::WaitStatus
source · pub enum WaitStatus<T, E> {
Finished(T),
Waiting,
FailedTemporarily(E),
FailedPermanently(E),
}
Expand description
Return this value from a wait
callback.
Variants§
Finished(T)
The task has finished.
Waiting
The task hasn’t finished yet, so wait a while and try again.
FailedTemporarily(E)
The task has failed, but the failure is believed to be temporary.
FailedPermanently(E)
The task has failed, and we don’t believe that it will ever succeed.
Trait Implementations§
source§impl<T> From<Error> for WaitStatus<T, Error>
impl<T> From<Error> for WaitStatus<T, Error>
source§fn from(error: Error) -> Self
fn from(error: Error) -> Self
Convert an Error
to either WaitStatus::FailedTemporarily
or
WaitStatus::FailedPermanently
depending on Error::might_be_temporary
.
Auto Trait Implementations§
impl<T, E> RefUnwindSafe for WaitStatus<T, E>where E: RefUnwindSafe, T: RefUnwindSafe,
impl<T, E> Send for WaitStatus<T, E>where E: Send, T: Send,
impl<T, E> Sync for WaitStatus<T, E>where E: Sync, T: Sync,
impl<T, E> Unpin for WaitStatus<T, E>where E: Unpin, T: Unpin,
impl<T, E> UnwindSafe for WaitStatus<T, E>where E: UnwindSafe, T: UnwindSafe,
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