Struct screeps::game::cpu::HeapStatistics
source · pub struct HeapStatistics {
pub total_heap_size: u32,
pub total_heap_size_executable: u32,
pub total_physical_size: u32,
pub used_heap_size: u32,
pub heap_size_limit: u32,
pub malloced_memory: u32,
pub peak_malloced_memory: u32,
pub does_zap_garbage: u32,
pub externally_allocated_size: u32,
}Expand description
Fields
total_heap_size: u32total_heap_size_executable: u32total_physical_size: u32used_heap_size: u32heap_size_limit: u32malloced_memory: u32peak_malloced_memory: u32does_zap_garbage: u32externally_allocated_size: u32Trait Implementations
sourceimpl Default for HeapStatistics
impl Default for HeapStatistics
sourcefn default() -> HeapStatistics
fn default() -> HeapStatistics
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for HeapStatistics
impl<'de> Deserialize<'de> for HeapStatistics
sourcefn 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
sourceimpl Serialize for HeapStatistics
impl Serialize for HeapStatistics
sourceimpl<'_a> TryFrom<&'_a HeapStatistics> for Value
impl<'_a> TryFrom<&'_a HeapStatistics> for Value
type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
sourcefn try_from(value: &'_a HeapStatistics) -> Result<Self, Self::Error>
fn try_from(value: &'_a HeapStatistics) -> Result<Self, Self::Error>
Performs the conversion.
sourceimpl<'_a> TryFrom<&'_a mut HeapStatistics> for Value
impl<'_a> TryFrom<&'_a mut HeapStatistics> for Value
type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
sourcefn try_from(value: &'_a mut HeapStatistics) -> Result<Self, Self::Error>
fn try_from(value: &'_a mut HeapStatistics) -> Result<Self, Self::Error>
Performs the conversion.
sourceimpl TryFrom<HeapStatistics> for Value
impl TryFrom<HeapStatistics> for Value
type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
sourcefn try_from(value: HeapStatistics) -> Result<Self, Self::Error>
fn try_from(value: HeapStatistics) -> Result<Self, Self::Error>
Performs the conversion.
sourceimpl TryFrom<Value> for HeapStatistics
impl TryFrom<Value> for HeapStatistics
impl JsSerialize for HeapStatistics
Auto Trait Implementations
impl RefUnwindSafe for HeapStatistics
impl Send for HeapStatistics
impl Sync for HeapStatistics
impl Unpin for HeapStatistics
impl UnwindSafe for HeapStatistics
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T, U> IntoExpectedType<U> for Twhere
U: FromExpectedType<T>,
impl<T, U> IntoExpectedType<U> for Twhere
U: FromExpectedType<T>,
sourcefn into_expected_type(self) -> Result<U, ConversionError>
fn into_expected_type(self) -> Result<U, ConversionError>
Casts this value as the target type, making the assumption that the types are correct. Read more