pub enum CanisterMemoryProfile {
Compact,
General,
HighHeadroom,
}Expand description
CanisterMemoryProfile
Build-time bucket sizing for IcyDB-owned shared memory bootstrap. This is physical configuration, not accepted schema authority or allocation access. A host that bootstraps first owns the effective setting instead.
Variants§
Compact
256 KiB buckets; 8 GiB shared manager capacity before backing limits.
General
1 MiB buckets; 32 GiB shared manager capacity before backing limits.
HighHeadroom
8 MiB buckets; 256 GiB shared manager capacity before backing limits.
Implementations§
Source§impl CanisterMemoryProfile
impl CanisterMemoryProfile
Sourcepub const fn bucket_size_pages(self) -> u16
pub const fn bucket_size_pages(self) -> u16
Return the immutable bucket size in 64 KiB Wasm pages.
Trait Implementations§
Source§impl Clone for CanisterMemoryProfile
impl Clone for CanisterMemoryProfile
Source§fn clone(&self) -> CanisterMemoryProfile
fn clone(&self) -> CanisterMemoryProfile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CanisterMemoryProfile
Source§impl Debug for CanisterMemoryProfile
impl Debug for CanisterMemoryProfile
impl Eq for CanisterMemoryProfile
Source§impl PartialEq for CanisterMemoryProfile
impl PartialEq for CanisterMemoryProfile
Source§impl Serialize for CanisterMemoryProfile
impl Serialize for CanisterMemoryProfile
impl StructuralPartialEq for CanisterMemoryProfile
Auto Trait Implementations§
impl Freeze for CanisterMemoryProfile
impl RefUnwindSafe for CanisterMemoryProfile
impl Send for CanisterMemoryProfile
impl Sync for CanisterMemoryProfile
impl Unpin for CanisterMemoryProfile
impl UnsafeUnpin for CanisterMemoryProfile
impl UnwindSafe for CanisterMemoryProfile
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.