pub struct SolveStatus {
pub state: SolveState,
pub time_spent_ms: u64,
pub best_score: Option<ScoreDto>,
pub error: Option<String>,
}Fields§
§state: SolveState§time_spent_ms: u64§best_score: Option<ScoreDto>§error: Option<String>Implementations§
Source§impl SolveStatus
impl SolveStatus
pub fn pending() -> Self
pub fn running(time_spent_ms: u64, best_score: Option<ScoreDto>) -> Self
pub fn completed(time_spent_ms: u64, score: ScoreDto) -> Self
pub fn failed(time_spent_ms: u64, error: impl Into<String>) -> Self
pub fn stopped(time_spent_ms: u64, best_score: Option<ScoreDto>) -> Self
Trait Implementations§
Source§impl Clone for SolveStatus
impl Clone for SolveStatus
Source§fn clone(&self) -> SolveStatus
fn clone(&self) -> SolveStatus
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 SolveStatus
impl Debug for SolveStatus
Source§impl<'de> Deserialize<'de> for SolveStatus
impl<'de> Deserialize<'de> for SolveStatus
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 SolveStatus
impl PartialEq for SolveStatus
Source§impl Serialize for SolveStatus
impl Serialize for SolveStatus
impl Eq for SolveStatus
impl StructuralPartialEq for SolveStatus
Auto Trait Implementations§
impl Freeze for SolveStatus
impl RefUnwindSafe for SolveStatus
impl Send for SolveStatus
impl Sync for SolveStatus
impl Unpin for SolveStatus
impl UnwindSafe for SolveStatus
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.