Enum page_allocator::AllocationError
source · pub enum AllocationError {
AddressNotFree(Page<Page4K>, usize),
OutOfAddressSpace(usize, Option<PageRange<Page4K>>),
NotInitialized,
}
Expand description
Possible errors returned by the page allocator.
Variants§
AddressNotFree(Page<Page4K>, usize)
The requested address was not free: it was already allocated, or is outside the range of this allocator.
OutOfAddressSpace(usize, Option<PageRange<Page4K>>)
The address space was full, or there was not a large-enough chunk
or enough remaining chunks (within the given PageRange
, if any)
that could satisfy the requested allocation size.
NotInitialized
The allocator has not yet been initialized.
Trait Implementations§
source§impl Debug for AllocationError
impl Debug for AllocationError
source§impl From<AllocationError> for &'static str
impl From<AllocationError> for &'static str
source§fn from(alloc_err: AllocationError) -> &'static str
fn from(alloc_err: AllocationError) -> &'static str
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for AllocationError
impl Send for AllocationError
impl Sync for AllocationError
impl Unpin for AllocationError
impl UnwindSafe for AllocationError
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