pub struct Unverified { /* private fields */ }Expand description
The checksums of a mapped index that have not been checked yet (see the module docs): its edge arrays’, and its in-adjacency’s once read.
Implementations§
Source§impl Unverified
impl Unverified
Sourcepub fn new(data: Buffer, regions: Vec<Region>) -> Self
pub fn new(data: Buffer, regions: Vec<Region>) -> Self
The deferred checksums of regions of the mapped bytes data.
Sourcepub fn on_damage(&self, f: Box<dyn FnOnce() + Send>)
pub fn on_damage(&self, f: Box<dyn FnOnce() + Send>)
Call f once, if the index is found damaged.
Sourcepub fn verify(&self) -> Result<(), String>
pub fn verify(&self) -> Result<(), String>
Check every deferred checksum, in parallel, and from now on each
region as it is deferred. Err says what is damaged; it stays damaged.
Sourcepub fn defer(&self, region: Region) -> Result<(), String>
pub fn defer(&self, region: Region) -> Result<(), String>
Defer the checksum of region, or check it now if Self::verify
has run.
Sourcepub fn is_damaged(&self) -> bool
pub fn is_damaged(&self) -> bool
Whether a checksum has been found not to match.
Sourcepub fn is_verified(&self) -> bool
pub fn is_verified(&self) -> bool
Whether every checksum deferred so far has been checked.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Unverified
impl Forget for Unverified
impl Move for Unverified
impl RefUnwindSafe for Unverified
impl Send for Unverified
impl Sync for Unverified
impl Unpin for Unverified
impl UnsafeUnpin for Unverified
impl UnwindSafe for Unverified
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more