pub enum AllocateError {
InvalidSize {
tag: Arc<str>,
size: u64,
},
InvalidAlignment {
tag: Arc<str>,
alignment: u64,
},
FixedOverlap {
tag_a: Arc<str>,
range_a: MemoryRange,
tag_b: Arc<str>,
range_b: MemoryRange,
},
Exhausted {
tag: Arc<str>,
size: u64,
alignment: u64,
phase: AllocationPhase,
free_space: u64,
},
}Expand description
Error returned by LayoutBuilder::allocate.
Variants§
InvalidSize
A request has an invalid size.
InvalidAlignment
A request has an invalid alignment.
FixedOverlap
Two fixed or reserved requests overlap.
Fields
§
range_a: MemoryRangeThe range of the first request.
§
range_b: MemoryRangeThe range of the second request.
Exhausted
A dynamic request could not be satisfied.
Trait Implementations§
Source§impl Debug for AllocateError
impl Debug for AllocateError
Source§impl Display for AllocateError
impl Display for AllocateError
Source§impl Error for AllocateError
impl Error for AllocateError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for AllocateError
impl RefUnwindSafe for AllocateError
impl Send for AllocateError
impl Sync for AllocateError
impl Unpin for AllocateError
impl UnsafeUnpin for AllocateError
impl UnwindSafe for AllocateError
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