pub enum ChecksumValidationError {
InvalidWidth {
algorithm: ChecksumAlgorithm,
expected_len: usize,
actual_len: usize,
},
InvalidAlphabet {
algorithm: ChecksumAlgorithm,
},
}Expand description
Describes why a checksum is not in its canonical wire form.
Variants§
InvalidWidth
The checksum value does not have the exact width for its algorithm.
Fields
§
algorithm: ChecksumAlgorithmAlgorithm whose checksum width was required.
InvalidAlphabet
The checksum value contains a character outside lowercase hexadecimal.
Fields
§
algorithm: ChecksumAlgorithmAlgorithm whose checksum value was rejected.
Trait Implementations§
Source§impl Clone for ChecksumValidationError
impl Clone for ChecksumValidationError
Source§impl Debug for ChecksumValidationError
impl Debug for ChecksumValidationError
Source§impl<'de> Deserialize<'de> for ChecksumValidationError
impl<'de> Deserialize<'de> for ChecksumValidationError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ChecksumValidationError
impl Display for ChecksumValidationError
impl Eq for ChecksumValidationError
Source§impl Error for ChecksumValidationError
impl Error for ChecksumValidationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for ChecksumValidationError
impl PartialEq for ChecksumValidationError
Source§impl Serialize for ChecksumValidationError
impl Serialize for ChecksumValidationError
impl StructuralPartialEq for ChecksumValidationError
Auto Trait Implementations§
impl Freeze for ChecksumValidationError
impl RefUnwindSafe for ChecksumValidationError
impl Send for ChecksumValidationError
impl Sync for ChecksumValidationError
impl Unpin for ChecksumValidationError
impl UnsafeUnpin for ChecksumValidationError
impl UnwindSafe for ChecksumValidationError
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