pub trait MemoryAllocator {
type Data: MemBlock;
type Error: Error + Send + Sync + 'static;
// Required methods
fn memory_type(&self) -> MemoryType;
fn alloc_frame(&self, data: &[u8]) -> Result<Self::Data, Self::Error>;
}
pub trait MemoryAllocator {
type Data: MemBlock;
type Error: Error + Send + Sync + 'static;
// Required methods
fn memory_type(&self) -> MemoryType;
fn alloc_frame(&self, data: &[u8]) -> Result<Self::Data, Self::Error>;
}