pub enum DataDescError {
SizeNotPageMultiple(u64),
BadLen(u32),
OutOfRange(u32),
PageIndexOutOfRange {
page_index: u32,
page_count: u64,
},
NotCanonical(u32),
}Expand description
Structural faults in a DataDesc relative to the Image arena,
surfaced eagerly at deblob (per the strict-interface rule: fail loud).
Variants§
SizeNotPageMultiple(u64)
size is not a PAGE_SIZE multiple.
BadLen(u32)
A page-ref len is 0 or exceeds PAGE_SIZE.
OutOfRange(u32)
A page-ref window [arena_off, arena_off + len) exceeds the arena.
PageIndexOutOfRange
A page_index is >= size / PAGE_SIZE.
NotCanonical(u32)
Pages are not strictly ascending by page_index (unsorted or duplicate).
Trait Implementations§
Source§impl Clone for DataDescError
impl Clone for DataDescError
Source§fn clone(&self) -> DataDescError
fn clone(&self) -> DataDescError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DataDescError
impl Debug for DataDescError
Source§impl PartialEq for DataDescError
impl PartialEq for DataDescError
impl Eq for DataDescError
impl StructuralPartialEq for DataDescError
Auto Trait Implementations§
impl Freeze for DataDescError
impl RefUnwindSafe for DataDescError
impl Send for DataDescError
impl Sync for DataDescError
impl Unpin for DataDescError
impl UnsafeUnpin for DataDescError
impl UnwindSafe for DataDescError
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.