Enum rkyv::ser::serializers::AllocScratchError
source · [−]pub enum AllocScratchError {
ExceededLimit {
requested: usize,
remaining: usize,
},
NotPoppedInReverseOrder {
expected: *mut u8,
expected_layout: Layout,
actual: *mut u8,
actual_layout: Layout,
},
NoAllocationsToPop,
}
Expand description
Errors that can occur when allocating with the global allocator.
Variants
ExceededLimit
Fields
requested: usize
The amount of scratch space requested
remaining: usize
The amount of scratch space remaining
The amount of scratch space requested exceeded the maximum limit
NotPoppedInReverseOrder
Fields
expected_layout: Layout
The layout of the allocation that was expected to be next
actual_layout: Layout
The layout of the pointer that was popped instead
Scratch space was not popped in reverse order.
NoAllocationsToPop
There are no allocations to pop
Trait Implementations
sourceimpl Debug for AllocScratchError
impl Debug for AllocScratchError
sourceimpl Display for AllocScratchError
impl Display for AllocScratchError
sourceimpl Error for AllocScratchError
impl Error for AllocScratchError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
impl Send for AllocScratchError
impl Sync for AllocScratchError
Auto Trait Implementations
impl RefUnwindSafe for AllocScratchError
impl Unpin for AllocScratchError
impl UnwindSafe for AllocScratchError
Blanket Implementations
sourceimpl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
sourcefn pointer_metadata(_: &Self::ArchivedMetadata) -> <Self as Pointee>::Metadata
fn pointer_metadata(_: &Self::ArchivedMetadata) -> <Self as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more