pub struct Budgets {
pub frame_instructions: Option<u64>,
pub peak_heap_bytes: Option<u64>,
pub package_bytes: Option<u64>,
pub startup_ms: Option<u32>,
}Expand description
What a game may spend on a target (ADR-0008 §6). A budget left out is not measured there yet.
Fields§
§frame_instructions: Option<u64>The most instructions one frame of the engine’s work may take in the heaviest benchmark scenario.
peak_heap_bytes: Option<u64>The most heap in use at once, in bytes.
package_bytes: Option<u64>The biggest package, in bytes.
startup_ms: Option<u32>The longest start-up, in milliseconds.
Trait Implementations§
impl Copy for Budgets
Source§impl<'de> Deserialize<'de> for Budgets
impl<'de> Deserialize<'de> for Budgets
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
impl Eq for Budgets
impl StructuralPartialEq for Budgets
Auto Trait Implementations§
impl Freeze for Budgets
impl RefUnwindSafe for Budgets
impl Send for Budgets
impl Sync for Budgets
impl Unpin for Budgets
impl UnsafeUnpin for Budgets
impl UnwindSafe for Budgets
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