#[non_exhaustive]pub enum Sha256Base64Error {
#[non_exhaustive] InvalidBase64,
#[non_exhaustive] WrongLength {
got: u32,
},
}Expand description
Error from Sha256::from_base64.
#[non_exhaustive] at the type level and per variant, so new
variants and new fields stay semver-additive.
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.
#[non_exhaustive]InvalidBase64
The string is not canonical padded RFC 4648 §4 base64.
#[non_exhaustive]WrongLength
The string decodes to something other than 32 bytes.
Trait Implementations§
Source§impl Clone for Sha256Base64Error
impl Clone for Sha256Base64Error
Source§impl Debug for Sha256Base64Error
impl Debug for Sha256Base64Error
Source§impl Display for Sha256Base64Error
impl Display for Sha256Base64Error
impl Eq for Sha256Base64Error
Source§impl Error for Sha256Base64Error
impl Error for Sha256Base64Error
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 Sha256Base64Error
impl PartialEq for Sha256Base64Error
impl StructuralPartialEq for Sha256Base64Error
Auto Trait Implementations§
impl Freeze for Sha256Base64Error
impl RefUnwindSafe for Sha256Base64Error
impl Send for Sha256Base64Error
impl Sync for Sha256Base64Error
impl Unpin for Sha256Base64Error
impl UnsafeUnpin for Sha256Base64Error
impl UnwindSafe for Sha256Base64Error
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