Struct ic_utils::interfaces::management_canister::attributes::MemoryAllocation
source · [−]pub struct MemoryAllocation(_);Expand description
A memory allocation for a canister. Can be anywhere from 0 to 2^48 (i.e. 256 TiB) inclusive.
This represents the size, in bytes, that the IC guarantees to the canister and limits the canister to. If a canister attempts to exceed this value (and the value is nonzero), the attempt will fail. If 0, memory allocation is provided on a best-effort basis.
Trait Implementations
sourceimpl Clone for MemoryAllocation
impl Clone for MemoryAllocation
sourcefn clone(&self) -> MemoryAllocation
fn clone(&self) -> MemoryAllocation
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for MemoryAllocation
impl Debug for MemoryAllocation
sourceimpl From<MemoryAllocation> for u64
impl From<MemoryAllocation> for u64
sourcefn from(memory_allocation: MemoryAllocation) -> Self
fn from(memory_allocation: MemoryAllocation) -> Self
Converts to this type from the input type.
sourceimpl TryFrom<i16> for MemoryAllocation
impl TryFrom<i16> for MemoryAllocation
sourceimpl TryFrom<i32> for MemoryAllocation
impl TryFrom<i32> for MemoryAllocation
sourceimpl TryFrom<i64> for MemoryAllocation
impl TryFrom<i64> for MemoryAllocation
sourceimpl TryFrom<i8> for MemoryAllocation
impl TryFrom<i8> for MemoryAllocation
sourceimpl TryFrom<u16> for MemoryAllocation
impl TryFrom<u16> for MemoryAllocation
sourceimpl TryFrom<u32> for MemoryAllocation
impl TryFrom<u32> for MemoryAllocation
sourceimpl TryFrom<u64> for MemoryAllocation
impl TryFrom<u64> for MemoryAllocation
sourceimpl TryFrom<u8> for MemoryAllocation
impl TryFrom<u8> for MemoryAllocation
impl Copy for MemoryAllocation
Auto Trait Implementations
impl RefUnwindSafe for MemoryAllocation
impl Send for MemoryAllocation
impl Sync for MemoryAllocation
impl Unpin for MemoryAllocation
impl UnwindSafe for MemoryAllocation
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