use crate::slot::AllocationSlotDescriptor;
#[derive(Clone, Debug, Eq, PartialEq)]
pub struct LedgerAnchor {
pub substrate: String,
pub descriptor: AllocationSlotDescriptor,
}
pub trait StorageSubstrate {
type Slot;
type LedgerMemory;
type MemoryHandle;
type Error;
fn open_ledger(&self) -> Result<Self::LedgerMemory, Self::Error>;
fn open_slot(&self, slot: &AllocationSlotDescriptor)
-> Result<Self::MemoryHandle, Self::Error>;
fn describe_slot(&self, slot: &Self::Slot) -> AllocationSlotDescriptor;
}