Struct aligned_buffer_pool::PooledValidator
source · pub struct PooledValidator { /* private fields */ }Trait Implementations§
source§impl<E> ArchiveContext<E> for PooledValidatorwhere
ArchiveValidator: ArchiveContext<E>,
impl<E> ArchiveContext<E> for PooledValidatorwhere
ArchiveValidator: ArchiveContext<E>,
source§fn check_subtree_ptr(
&mut self,
ptr: *const u8,
layout: &Layout
) -> Result<(), E>
fn check_subtree_ptr( &mut self, ptr: *const u8, layout: &Layout ) -> Result<(), E>
Checks that the given data address and layout is located completely
within the subtree range.
source§unsafe fn push_prefix_subtree_range(
&mut self,
root: *const u8,
end: *const u8
) -> Result<Range<usize>, E>
unsafe fn push_prefix_subtree_range( &mut self, root: *const u8, end: *const u8 ) -> Result<Range<usize>, E>
Pushes a new subtree range onto the validator and starts validating it. Read more
source§impl Debug for PooledValidator
impl Debug for PooledValidator
source§impl Drop for PooledValidator
impl Drop for PooledValidator
Registers the given
ptr as a shared pointer with the given type. Read moreAuto Trait Implementations§
impl Freeze for PooledValidator
impl RefUnwindSafe for PooledValidator
impl Send for PooledValidator
impl Sync for PooledValidator
impl Unpin for PooledValidator
impl UnwindSafe for PooledValidator
Blanket Implementations§
source§impl<C, E> ArchiveContextExt<E> for C
impl<C, E> ArchiveContextExt<E> for C
source§unsafe fn bounds_check_subtree_base_offset<T>(
&mut self,
base: *const u8,
offset: isize,
metadata: <T as Pointee>::Metadata
) -> Result<*const T, E>
unsafe fn bounds_check_subtree_base_offset<T>( &mut self, base: *const u8, offset: isize, metadata: <T as Pointee>::Metadata ) -> Result<*const T, E>
Checks that the given relative pointer to a subtree can be dereferenced.
§Safety
basemust be inside the archive this validator was created for.metadatamust be the metadata for the pointer defined bybaseandoffset.
source§unsafe fn bounds_check_subtree_rel_ptr<T>(
&mut self,
rel_ptr: &RelPtr<T, i32_le>
) -> Result<*const T, E>
unsafe fn bounds_check_subtree_rel_ptr<T>( &mut self, rel_ptr: &RelPtr<T, i32_le> ) -> Result<*const T, E>
Checks that the given RelPtr to a subtree can be dereferenced.
§Safety
rel_ptrmust be inside the archive this validator was created for.
source§unsafe fn push_prefix_subtree<T>(
&mut self,
root: *const T
) -> Result<Range<usize>, E>
unsafe fn push_prefix_subtree<T>( &mut self, root: *const T ) -> Result<Range<usize>, E>
Pushes a new subtree range onto the validator and starts validating it.
The claimed range spans from the end of start to the end of the
current subobject range.
§Safety
root must be located inside the archive.
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
source§fn 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.
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
source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.