pub struct SimulationResult {
pub mean_dps: f64,
pub min_dps: f64,
pub max_dps: f64,
pub total_iterations: u32,
pub chunks_completed: u32,
}Expand description
Stored in jobs.result.
Fields§
§mean_dps: f64§min_dps: f64§max_dps: f64§total_iterations: u32§chunks_completed: u32Implementations§
Source§impl SimulationResult
impl SimulationResult
pub fn new() -> Self
pub fn merge_chunk(&mut self, chunk: &ChunkResult)
Trait Implementations§
Source§impl Clone for SimulationResult
impl Clone for SimulationResult
Source§fn clone(&self) -> SimulationResult
fn clone(&self) -> SimulationResult
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 SimulationResult
impl Debug for SimulationResult
Source§impl Default for SimulationResult
impl Default for SimulationResult
Source§impl<'de> Deserialize<'de> for SimulationResult
impl<'de> Deserialize<'de> for SimulationResult
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 From<SimulationResult> for JsValuewhere
SimulationResult: Serialize,
impl From<SimulationResult> for JsValuewhere
SimulationResult: Serialize,
Source§fn from(value: SimulationResult) -> Self
fn from(value: SimulationResult) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for SimulationResultwhere
Self: DeserializeOwned,
impl FromWasmAbi for SimulationResultwhere
Self: DeserializeOwned,
Source§impl IntoWasmAbi for &SimulationResultwhere
SimulationResult: Serialize,
impl IntoWasmAbi for &SimulationResultwhere
SimulationResult: Serialize,
Source§impl IntoWasmAbi for SimulationResultwhere
SimulationResult: Serialize,
impl IntoWasmAbi for SimulationResultwhere
SimulationResult: Serialize,
Source§impl OptionFromWasmAbi for SimulationResultwhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for SimulationResultwhere
Self: DeserializeOwned,
Source§impl OptionIntoWasmAbi for SimulationResultwhere
SimulationResult: Serialize,
impl OptionIntoWasmAbi for SimulationResultwhere
SimulationResult: Serialize,
Source§impl PartialEq for SimulationResult
impl PartialEq for SimulationResult
Source§impl RefFromWasmAbi for SimulationResultwhere
Self: DeserializeOwned,
impl RefFromWasmAbi for SimulationResultwhere
Self: DeserializeOwned,
Source§type Abi = <JsType as RefFromWasmAbi>::Abi
type Abi = <JsType as RefFromWasmAbi>::Abi
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = SelfOwner<SimulationResult>
type Anchor = SelfOwner<SimulationResult>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl Serialize for SimulationResult
impl Serialize for SimulationResult
Source§impl Tsify for SimulationResult
impl Tsify for SimulationResult
const DECL: &'static str = "/**\n * Stored in `jobs.result`.\n */\nexport interface SimulationResult {\n meanDps: number;\n minDps: number;\n maxDps: number;\n totalIterations: number;\n chunksCompleted: number;\n}"
const SERIALIZATION_CONFIG: SerializationConfig
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
Source§impl VectorFromWasmAbi for SimulationResultwhere
Self: DeserializeOwned,
impl VectorFromWasmAbi for SimulationResultwhere
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Source§impl VectorIntoWasmAbi for SimulationResultwhere
SimulationResult: Serialize,
impl VectorIntoWasmAbi for SimulationResultwhere
SimulationResult: Serialize,
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Source§impl WasmDescribe for SimulationResult
impl WasmDescribe for SimulationResult
impl StructuralPartialEq for SimulationResult
Auto Trait Implementations§
impl Freeze for SimulationResult
impl RefUnwindSafe for SimulationResult
impl Send for SimulationResult
impl Sync for SimulationResult
impl Unpin for SimulationResult
impl UnsafeUnpin for SimulationResult
impl UnwindSafe for SimulationResult
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<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.