#[non_exhaustive]pub enum ChecksumState {
NotInstalled,
AwaitingResponse,
Validating {
algorithm: ResponseChecksumAlgorithm,
},
Complete(ChecksumOutcome),
}Expand description
Where a ChecksumCapture’s record stands.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NotInstalled
The handle has not been attached to a call that ran.
AwaitingResponse
The call is running, and no response body is being validated.
Validating
A response body is being validated.
Fields
§
algorithm: ResponseChecksumAlgorithmThe algorithm the body is validated with.
Complete(ChecksumOutcome)
The outcome is final.
Trait Implementations§
Source§impl Clone for ChecksumState
impl Clone for ChecksumState
Source§fn clone(&self) -> ChecksumState
fn clone(&self) -> ChecksumState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ChecksumState
impl Debug for ChecksumState
impl Eq for ChecksumState
Source§impl PartialEq for ChecksumState
impl PartialEq for ChecksumState
impl StructuralPartialEq for ChecksumState
Auto Trait Implementations§
impl Freeze for ChecksumState
impl RefUnwindSafe for ChecksumState
impl Send for ChecksumState
impl Sync for ChecksumState
impl Unpin for ChecksumState
impl UnsafeUnpin for ChecksumState
impl UnwindSafe for ChecksumState
Blanket Implementations§
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,
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 moreCreates a shared type from an unshared type.