Struct rkyv::validation::SharedArchiveValidator [−][src]
pub struct SharedArchiveValidator<C> { /* fields omitted */ }
Expand description
An adapter that adds shared memory validation.
Implementations
Consumes the adapter and returns the underlying validator.
Trait Implementations
Checks the given parts of a relative pointer for bounds issues Read more
Claims count
bytes located offset
bytes away from base
. Read more
unsafe fn claim_owned_ptr<T: ArchivePointee + ?Sized>(
&mut self,
ptr: *const T
) -> Result<(), Self::Error> where
Self: ArchiveBoundsContext,
<T as Pointee>::Metadata: LayoutMetadata<T>,
[src]
unsafe fn claim_owned_ptr<T: ArchivePointee + ?Sized>(
&mut self,
ptr: *const T
) -> Result<(), Self::Error> where
Self: ArchiveBoundsContext,
<T as Pointee>::Metadata: LayoutMetadata<T>,
[src]Claims the memory at the given location as the given type. Read more
fn claim_owned_rel_ptr<T: ArchivePointee + ?Sized>(
&mut self,
rel_ptr: &RelPtr<T>
) -> Result<*const T, Self::Error> where
Self: ArchiveBoundsContext,
<T as Pointee>::Metadata: LayoutMetadata<T>,
[src]
fn claim_owned_rel_ptr<T: ArchivePointee + ?Sized>(
&mut self,
rel_ptr: &RelPtr<T>
) -> Result<*const T, Self::Error> where
Self: ArchiveBoundsContext,
<T as Pointee>::Metadata: LayoutMetadata<T>,
[src]Claims the memory referenced by the given relative pointer.
type Error = SharedArchiveError<C::Error>
type Error = SharedArchiveError<C::Error>
The error produced by any failing methods
Auto Trait Implementations
impl<C> RefUnwindSafe for SharedArchiveValidator<C> where
C: RefUnwindSafe,
impl<C> !Send for SharedArchiveValidator<C>
impl<C> !Sync for SharedArchiveValidator<C>
impl<C> Unpin for SharedArchiveValidator<C> where
C: Unpin,
impl<C> UnwindSafe for SharedArchiveValidator<C> where
C: UnwindSafe,
Blanket Implementations
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Converts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more