Struct rkyv::validation::ArchiveValidator [−][src]
pub struct ArchiveValidator<C> { /* fields omitted */ }
An adapter that adds memory validation to a context.
Implementations
impl<C> ArchiveValidator<C>
[src]
impl<C> ArchiveValidator<C>
[src]pub fn new(inner: C) -> Self
[src]
Wraps the given validator context and adds memory validation.
pub fn into_inner(self) -> C
[src]
Consumes the adapter and returns the underlying validator.
Trait Implementations
impl<C: ArchiveBoundsContext> ArchiveBoundsContext for ArchiveValidator<C>
[src]
impl<C: ArchiveBoundsContext> ArchiveBoundsContext for ArchiveValidator<C>
[src]impl<C: ArchiveBoundsContext> ArchiveMemoryContext for ArchiveValidator<C>
[src]
impl<C: ArchiveBoundsContext> ArchiveMemoryContext for ArchiveValidator<C>
[src]unsafe fn claim_bytes(
&mut self,
start: *const u8,
len: usize
) -> Result<(), Self::Error>
[src]
&mut self,
start: *const u8,
len: usize
) -> Result<(), Self::Error>
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]
&mut self,
ptr: *const T
) -> Result<(), Self::Error> where
Self: ArchiveBoundsContext,
<T as Pointee>::Metadata: LayoutMetadata<T>,
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]
&mut self,
rel_ptr: &RelPtr<T>
) -> Result<*const T, Self::Error> where
Self: ArchiveBoundsContext,
<T as Pointee>::Metadata: LayoutMetadata<T>,
impl<C: Fallible> Fallible for ArchiveValidator<C>
[src]
impl<C: Fallible> Fallible for ArchiveValidator<C>
[src]type Error = ArchiveMemoryError<C::Error>
The error produced by any failing methods
Auto Trait Implementations
impl<C> RefUnwindSafe for ArchiveValidator<C> where
C: RefUnwindSafe,
impl<C> RefUnwindSafe for ArchiveValidator<C> where
C: RefUnwindSafe,
impl<C> !Send for ArchiveValidator<C>
impl<C> !Send for ArchiveValidator<C>
impl<C> !Sync for ArchiveValidator<C>
impl<C> !Sync for ArchiveValidator<C>
impl<C> Unpin for ArchiveValidator<C> where
C: Unpin,
impl<C> Unpin for ArchiveValidator<C> where
C: Unpin,
impl<C> UnwindSafe for ArchiveValidator<C> where
C: UnwindSafe,
impl<C> UnwindSafe for ArchiveValidator<C> where
C: UnwindSafe,
Blanket Implementations
impl<T> ArchivePointee for T
[src]
impl<T> ArchivePointee for T
[src]type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
[src]
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata