Struct ic_stable_structures::file_mem::FileMemory
source · pub struct FileMemory(_);
Expand description
A Memory
backed by a file.
Implementations
sourceimpl FileMemory
impl FileMemory
Trait Implementations
sourceimpl Clone for FileMemory
impl Clone for FileMemory
sourcefn clone(&self) -> FileMemory
fn clone(&self) -> FileMemory
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Memory for FileMemory
impl Memory for FileMemory
sourcefn size(&self) -> u64
fn size(&self) -> u64
Returns the current size of the stable memory in WebAssembly
pages. (One WebAssembly page is 64Ki bytes.) Read more
sourcefn grow(&self, pages: u64) -> i64
fn grow(&self, pages: u64) -> i64
Tries to grow the memory by new_pages many pages containing
zeroes. If successful, returns the previous size of the
memory (in pages). Otherwise, returns -1. Read more
Auto Trait Implementations
impl !RefUnwindSafe for FileMemory
impl !Send for FileMemory
impl !Sync for FileMemory
impl Unpin for FileMemory
impl !UnwindSafe for FileMemory
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