#[non_exhaustive]pub enum ChecksumMismatch {
Crc32c {
got: u32,
want: u32,
},
Md5 {
got: Bytes,
want: Bytes,
},
Both {
got: Box<ObjectChecksums>,
want: Box<ObjectChecksums>,
},
}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.
Crc32c
The CRC32C checksum sent by the service does not match the computed (or expected) value.
Md5
The MD5 hash sent by the service does not match the computed (or expected) value.
Both
The CRC32C checksum and the MD5 hash sent by the service do not match the computed (or expected) values.
Trait Implementations§
Source§impl Clone for ChecksumMismatch
impl Clone for ChecksumMismatch
Source§fn clone(&self) -> ChecksumMismatch
fn clone(&self) -> ChecksumMismatch
Returns a duplicate of the value. Read more
1.0.0 · 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 ChecksumMismatch
impl Debug for ChecksumMismatch
Auto Trait Implementations§
impl !Freeze for ChecksumMismatch
impl RefUnwindSafe for ChecksumMismatch
impl Send for ChecksumMismatch
impl Sync for ChecksumMismatch
impl Unpin for ChecksumMismatch
impl UnwindSafe for ChecksumMismatch
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.