sel4_bounce_buffer_allocator

Trait AbstractBounceBufferAllocator

Source
pub trait AbstractBounceBufferAllocator {
    type Error: Debug;

    // Required methods
    fn allocate(&mut self, layout: Layout) -> Result<usize, Self::Error>;
    fn deallocate(&mut self, offset: usize, size: usize);
}

Required Associated Types§

Source

type Error: Debug

Required Methods§

Source

fn allocate(&mut self, layout: Layout) -> Result<usize, Self::Error>

Source

fn deallocate(&mut self, offset: usize, size: usize)

Implementors§