pub struct Memory {
pub pages: u16,
pub last_one: u32,
pub reads: u32,
pub writes: u32,
pub max: u32,
}
Fields§
§pages: u16
The number of linear memory pages allocated for the app.
One page size is 64 KB, as defined by the WebAssembly core specification.
last_one: u32
The address of the last byte that isn’t zero.
This roughly corresponds to the actual memory used in the app, assuming that the allocator tries to use lower address values and that most of data structures in use aren’t all zeroes.
reads: u32
The number of read operations.
Currently unused. Reserved for future use.
writes: u32
The number of write operations.
Currently unused. Reserved for future use.
max: u32
The maximum memory that can be allocated.
Currently unused. Reserved for future use.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Memory
impl<'de> Deserialize<'de> for Memory
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 StructuralPartialEq for Memory
Auto Trait Implementations§
impl Freeze for Memory
impl RefUnwindSafe for Memory
impl Send for Memory
impl Sync for Memory
impl Unpin for Memory
impl UnwindSafe for Memory
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