pub enum AllocationSlot {
MemoryManagerId(u8),
NamedPartition(String),
Custom {
kind: String,
version: u32,
value: Vec<u8>,
},
}Expand description
AllocationSlot
Durable physical allocation identity interpreted by a storage substrate.
Stable keys are logical identities; allocation slots are the physical locations those keys are bound to in the ledger.
Variants§
MemoryManagerId(u8)
ic-stable-structures::MemoryManager virtual memory ID.
NamedPartition(String)
Named substrate partition.
Custom
Forward-compatible custom slot descriptor.
Trait Implementations§
Source§impl Clone for AllocationSlot
impl Clone for AllocationSlot
Source§fn clone(&self) -> AllocationSlot
fn clone(&self) -> AllocationSlot
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 moreSource§impl Debug for AllocationSlot
impl Debug for AllocationSlot
Source§impl<'de> Deserialize<'de> for AllocationSlot
impl<'de> Deserialize<'de> for AllocationSlot
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
Source§impl Hash for AllocationSlot
impl Hash for AllocationSlot
Source§impl Ord for AllocationSlot
impl Ord for AllocationSlot
Source§fn cmp(&self, other: &AllocationSlot) -> Ordering
fn cmp(&self, other: &AllocationSlot) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AllocationSlot
impl PartialEq for AllocationSlot
Source§fn eq(&self, other: &AllocationSlot) -> bool
fn eq(&self, other: &AllocationSlot) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for AllocationSlot
impl PartialOrd for AllocationSlot
Source§impl Serialize for AllocationSlot
impl Serialize for AllocationSlot
impl Eq for AllocationSlot
impl StructuralPartialEq for AllocationSlot
Auto Trait Implementations§
impl Freeze for AllocationSlot
impl RefUnwindSafe for AllocationSlot
impl Send for AllocationSlot
impl Sync for AllocationSlot
impl Unpin for AllocationSlot
impl UnsafeUnpin for AllocationSlot
impl UnwindSafe for AllocationSlot
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