pub enum PredictionStatus {
Starting,
Processing,
Succeeded,
Failed,
Canceled,
}
Expand description
Status of a prediction.
Variants§
Starting
The prediction is starting up
Processing
The prediction is currently processing
Succeeded
The prediction completed successfully
Failed
The prediction failed
Canceled
The prediction was canceled
Implementations§
Source§impl PredictionStatus
impl PredictionStatus
Sourcepub fn is_terminal(&self) -> bool
pub fn is_terminal(&self) -> bool
Check if the prediction is in a terminal state
Sourcepub fn is_running(&self) -> bool
pub fn is_running(&self) -> bool
Check if the prediction is still running
Trait Implementations§
Source§impl Clone for PredictionStatus
impl Clone for PredictionStatus
Source§fn clone(&self) -> PredictionStatus
fn clone(&self) -> PredictionStatus
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PredictionStatus
impl Debug for PredictionStatus
Source§impl<'de> Deserialize<'de> for PredictionStatus
impl<'de> Deserialize<'de> for PredictionStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PredictionStatus
impl PartialEq for PredictionStatus
Source§impl Serialize for PredictionStatus
impl Serialize for PredictionStatus
impl Eq for PredictionStatus
impl StructuralPartialEq for PredictionStatus
Auto Trait Implementations§
impl Freeze for PredictionStatus
impl RefUnwindSafe for PredictionStatus
impl Send for PredictionStatus
impl Sync for PredictionStatus
impl Unpin for PredictionStatus
impl UnwindSafe for PredictionStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.