pub struct AllocationFailure {
pub kind: AllocationKind,
pub bytes: Option<usize>,
}Expand description
An allocation failed after the operation passed its validation and budgets.
This describes storage exhaustion, rather than invalid input or malformed SDK data. It also covers a collection refusing an unrepresentable capacity.
Fields§
§kind: AllocationKindWhich storage could not be supplied.
bytes: Option<usize>The requested allocation size in bytes, when known.
Trait Implementations§
Source§impl Clone for AllocationFailure
impl Clone for AllocationFailure
impl Copy for AllocationFailure
Source§impl Debug for AllocationFailure
impl Debug for AllocationFailure
Source§impl Display for AllocationFailure
impl Display for AllocationFailure
impl Eq for AllocationFailure
Source§impl Error for AllocationFailure
impl Error for AllocationFailure
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()
Source§impl Hash for AllocationFailure
impl Hash for AllocationFailure
Source§impl PartialEq for AllocationFailure
impl PartialEq for AllocationFailure
impl StructuralPartialEq for AllocationFailure
Auto Trait Implementations§
impl Freeze for AllocationFailure
impl RefUnwindSafe for AllocationFailure
impl Send for AllocationFailure
impl Sync for AllocationFailure
impl Unpin for AllocationFailure
impl UnsafeUnpin for AllocationFailure
impl UnwindSafe for AllocationFailure
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