Enum rkyv_dyn::validation::DynMetadataError
source · [−]pub enum DynMetadataError {
InvalidImplId(u64),
MismatchedCachedVtable {
type_id: u64,
expected: usize,
found: usize,
},
}
Expand description
Errors that can occur when checking archived trait objects
Variants
InvalidImplId(u64)
The trait object has an invalid type id
MismatchedCachedVtable
Fields
type_id: u64
The type id of the trait object
expected: usize
The expected vtable
found: usize
The found vtable
The cached vtable does not match the vtable for the type id
Trait Implementations
sourceimpl Debug for DynMetadataError
impl Debug for DynMetadataError
sourceimpl Display for DynMetadataError
impl Display for DynMetadataError
sourceimpl Error for DynMetadataError
impl Error for DynMetadataError
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()
sourceimpl From<Infallible> for DynMetadataError
impl From<Infallible> for DynMetadataError
sourcefn from(_: Infallible) -> Self
fn from(_: Infallible) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for DynMetadataError
impl Send for DynMetadataError
impl Sync for DynMetadataError
impl Unpin for DynMetadataError
impl UnwindSafe for DynMetadataError
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(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T 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 · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more