#[non_exhaustive]pub struct DropVerifier;Expand description
Streams and verifies a Zstandard-compressed CAR drop archive.
Implementations§
Source§impl DropVerifier
impl DropVerifier
pub const fn new() -> Self
Sourcepub async fn verify(&self, path: impl AsRef<Path>) -> Result<DropVerifyResult>
pub async fn verify(&self, path: impl AsRef<Path>) -> Result<DropVerifyResult>
Verify a compressed drop archive at a filesystem path.
§Errors
Returns an error if the archive is truncated, malformed, tampered with, or inconsistent with its manifest.
Sourcepub async fn verify_reader<R>(&self, reader: R) -> Result<DropVerifyResult>
pub async fn verify_reader<R>(&self, reader: R) -> Result<DropVerifyResult>
Verify a compressed drop archive from an asynchronous reader.
The reader is consumed incrementally; the compressed archive is never loaded into memory as a whole.
§Errors
Returns an error if the archive is truncated, malformed, tampered with, or inconsistent with its manifest.
Trait Implementations§
Source§impl Clone for DropVerifier
impl Clone for DropVerifier
impl Copy for DropVerifier
Source§impl Debug for DropVerifier
impl Debug for DropVerifier
Auto Trait Implementations§
impl Freeze for DropVerifier
impl RefUnwindSafe for DropVerifier
impl Send for DropVerifier
impl Sync for DropVerifier
impl Unpin for DropVerifier
impl UnsafeUnpin for DropVerifier
impl UnwindSafe for DropVerifier
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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