pub enum BlobError {
InvalidHeader,
UnallocatedId,
UncommittedIndex,
InvalidIndex,
}Expand description
Possible error conditions when retrieving a blob by ID, either via iteration or get_blob().
Variants§
InvalidHeader
The header was invalid (purportedly either with indices extending past the blob head offset or the blob head offset extending past the length of the buffer). Suggests invalid initialization or corruption.
UnallocatedId
The requested ID has not yet been allocated.
UncommittedIndex
Suggests a lost race in which the requested ID is valid and the header has been updated to reflect that, but the bookkeeping index has not yet been committed. Such a case unfortunately is indistinguishable from the other possibility that the index was already committed but then subsequently corrupted with zeroes. Where there is confidence in the first case, this call should be retried.
InvalidIndex
The corresponding bookkeeping index is invalid, with the blob purportedly not being
contained within [blob head, end of region). Suggests corruption.
Trait Implementations§
impl Copy for BlobError
impl Eq for BlobError
impl StructuralPartialEq for BlobError
Auto Trait Implementations§
impl Freeze for BlobError
impl RefUnwindSafe for BlobError
impl Send for BlobError
impl Sync for BlobError
impl Unpin for BlobError
impl UnsafeUnpin for BlobError
impl UnwindSafe for BlobError
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)