#[non_exhaustive]pub enum Base64Error {
Invalid,
InputTooLarge,
OutputTooLarge,
InvalidLimits,
LengthOverflow,
AllocationFailure,
}Expand description
Error returned when base64 decoding fails.
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.
Invalid
The input was not valid base64.
InputTooLarge
Encoded text exceeded the supported resource limit.
OutputTooLarge
Decoded bytes would exceed the caller’s output budget.
InvalidLimits
A supplied budget cannot describe an addressable buffer.
LengthOverflow
Checked length arithmetic could not represent the decoded size.
AllocationFailure
The validated output reservation could not be satisfied.
Implementations§
Source§impl Base64Error
impl Base64Error
Sourcepub const fn reason(&self) -> CodecErrorReason
pub const fn reason(&self) -> CodecErrorReason
The schema-owned failure reason shared by native and SDK adapters.
Trait Implementations§
Source§impl Debug for Base64Error
impl Debug for Base64Error
Source§impl Display for Base64Error
impl Display for Base64Error
Source§impl Error for Base64Error
impl Error for Base64Error
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()
Auto Trait Implementations§
impl Forget for Base64Error
impl Freeze for Base64Error
impl Move for Base64Error
impl RefUnwindSafe for Base64Error
impl Send for Base64Error
impl Sync for Base64Error
impl Unpin for Base64Error
impl UnsafeUnpin for Base64Error
impl UnwindSafe for Base64Error
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