#[repr(i32)]pub enum VerifyError {
BadMagic = 1,
ConfigMismatch = 2,
}Expand description
Why CadAlloc::verify rejected a heap.
#[repr(i32)], so it is FFI-safe and each variant’s discriminant is the
status code the export_c_api! verify shim returns
(success is 0).
Variants§
BadMagic = 1
The "CADALLOC" marker is absent — the heap was never initialized (or
not by cadalloc).
ConfigMismatch = 2
The marker is present but the configuration fingerprint differs — the heap was laid out by a different configuration. Using it would corrupt memory.
Trait Implementations§
Source§impl Clone for VerifyError
impl Clone for VerifyError
impl Copy for VerifyError
Source§impl Debug for VerifyError
impl Debug for VerifyError
impl Eq for VerifyError
Source§impl PartialEq for VerifyError
impl PartialEq for VerifyError
impl StructuralPartialEq for VerifyError
Auto Trait Implementations§
impl Freeze for VerifyError
impl RefUnwindSafe for VerifyError
impl Send for VerifyError
impl Sync for VerifyError
impl Unpin for VerifyError
impl UnsafeUnpin for VerifyError
impl UnwindSafe for VerifyError
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