#[non_exhaustive]pub enum ChecksumOutcome {
Validated {
algorithm: ResponseChecksumAlgorithm,
computed: String,
},
Mismatch {
algorithm: ResponseChecksumAlgorithm,
expected: String,
computed: String,
},
NotValidated {
reason: NotValidatedReason,
},
Incomplete {
algorithm: ResponseChecksumAlgorithm,
cause: IncompleteCause,
},
}Expand description
Whether a call’s response body was validated against its checksum.
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.
Validated
The body was read to its end, and its checksum matched.
Fields
§
algorithm: ResponseChecksumAlgorithmThe algorithm the body was validated with.
Mismatch
The body was read to its end, and its checksum did not match.
Fields
§
algorithm: ResponseChecksumAlgorithmThe algorithm the body was validated with.
NotValidated
The body was not validated.
Fields
§
reason: NotValidatedReasonWhy the body was not validated.
Incomplete
Validation started, but the body did not reach its end.
Fields
§
algorithm: ResponseChecksumAlgorithmThe algorithm the body was being validated with.
§
cause: IncompleteCauseWhy the body did not reach its end.
Trait Implementations§
Source§impl Clone for ChecksumOutcome
impl Clone for ChecksumOutcome
Source§fn clone(&self) -> ChecksumOutcome
fn clone(&self) -> ChecksumOutcome
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 ChecksumOutcome
impl Debug for ChecksumOutcome
impl Eq for ChecksumOutcome
Source§impl PartialEq for ChecksumOutcome
impl PartialEq for ChecksumOutcome
impl StructuralPartialEq for ChecksumOutcome
Auto Trait Implementations§
impl Freeze for ChecksumOutcome
impl RefUnwindSafe for ChecksumOutcome
impl Send for ChecksumOutcome
impl Sync for ChecksumOutcome
impl Unpin for ChecksumOutcome
impl UnsafeUnpin for ChecksumOutcome
impl UnwindSafe for ChecksumOutcome
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.