pub struct IterationTrace {
pub duration_ms: u32,
pub seed: u64,
pub estimated_dps: f64,
pub total_casts: u64,
pub gcd_utilization_pct: f64,
pub decisions: Vec<Decision>,
pub resource_samples: Vec<ResourceSample>,
pub dps_samples: Vec<DpsSample>,
pub aura_events: Vec<AuraEvent>,
pub action_stats: Vec<ActionStat>,
}Expand description
Single deterministic-seed iteration trace.
Fields§
§duration_ms: u32§seed: u64§estimated_dps: f64§total_casts: u64§gcd_utilization_pct: f64§decisions: Vec<Decision>§resource_samples: Vec<ResourceSample>§dps_samples: Vec<DpsSample>§aura_events: Vec<AuraEvent>§action_stats: Vec<ActionStat>Trait Implementations§
Source§impl Clone for IterationTrace
impl Clone for IterationTrace
Source§fn clone(&self) -> IterationTrace
fn clone(&self) -> IterationTrace
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 IterationTrace
impl Debug for IterationTrace
Source§impl From<IterationTrace> for JsValuewhere
IterationTrace: Serialize,
impl From<IterationTrace> for JsValuewhere
IterationTrace: Serialize,
Source§fn from(value: IterationTrace) -> Self
fn from(value: IterationTrace) -> Self
Converts to this type from the input type.
Source§impl IntoWasmAbi for &IterationTracewhere
IterationTrace: Serialize,
impl IntoWasmAbi for &IterationTracewhere
IterationTrace: Serialize,
Source§impl IntoWasmAbi for IterationTracewhere
IterationTrace: Serialize,
impl IntoWasmAbi for IterationTracewhere
IterationTrace: Serialize,
Source§impl OptionIntoWasmAbi for IterationTracewhere
IterationTrace: Serialize,
impl OptionIntoWasmAbi for IterationTracewhere
IterationTrace: Serialize,
Source§impl Serialize for IterationTrace
impl Serialize for IterationTrace
Source§impl Tsify for IterationTrace
impl Tsify for IterationTrace
const DECL: &'static str = "/**\n * Single deterministic-seed iteration trace.\n */\nexport interface IterationTrace {\n durationMs: number;\n seed: number;\n estimatedDps: number;\n totalCasts: number;\n gcdUtilizationPct: number;\n decisions: Decision[];\n resourceSamples: ResourceSample[];\n dpsSamples: DpsSample[];\n auraEvents: AuraEvent[];\n actionStats: ActionStat[];\n}"
const SERIALIZATION_CONFIG: SerializationConfig
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
Source§impl VectorIntoWasmAbi for IterationTracewhere
IterationTrace: Serialize,
impl VectorIntoWasmAbi for IterationTracewhere
IterationTrace: Serialize,
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Source§impl WasmDescribe for IterationTrace
impl WasmDescribe for IterationTrace
Auto Trait Implementations§
impl Freeze for IterationTrace
impl RefUnwindSafe for IterationTrace
impl Send for IterationTrace
impl Sync for IterationTrace
impl Unpin for IterationTrace
impl UnsafeUnpin for IterationTrace
impl UnwindSafe for IterationTrace
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
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.