#[non_exhaustive]pub enum ForgivingError {
InvalidInput,
PositionOverflow,
Backend(BackendFault),
InputAfterFinish,
InputAfterComplete,
OutputTooSmall {
required: usize,
available: usize,
},
AllocationLimitExceeded {
required: usize,
limit: usize,
},
AllocationFailed {
requested: usize,
},
}Expand description
Opaque WHATWG decode, lifecycle, or resource failure.
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.
InvalidInput
The string does not satisfy the WHATWG forgiving Base64 algorithm.
PositionOverflow
The absolute accepted source length cannot be represented by usize.
Backend(BackendFault)
An internal state-machine progress invariant failed.
InputAfterFinish
Input was supplied after finalization started.
InputAfterComplete
Input was supplied after successful completion.
OutputTooSmall
The caller’s one-shot destination is too small.
AllocationLimitExceeded
The exact allocating result exceeds a caller-selected limit.
AllocationFailed
Exact allocation reservation failed.
Trait Implementations§
Source§impl Clone for ForgivingError
impl Clone for ForgivingError
Source§fn clone(&self) -> ForgivingError
fn clone(&self) -> ForgivingError
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 moreimpl Copy for ForgivingError
Source§impl Debug for ForgivingError
impl Debug for ForgivingError
Source§impl Display for ForgivingError
impl Display for ForgivingError
impl Eq for ForgivingError
Source§impl Error for ForgivingError
Available on crate feature std only.
impl Error for ForgivingError
Available on crate feature
std only.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 Hash for ForgivingError
impl Hash for ForgivingError
Source§impl PartialEq for ForgivingError
impl PartialEq for ForgivingError
impl StructuralPartialEq for ForgivingError
Auto Trait Implementations§
impl Freeze for ForgivingError
impl RefUnwindSafe for ForgivingError
impl Send for ForgivingError
impl Sync for ForgivingError
impl Unpin for ForgivingError
impl UnsafeUnpin for ForgivingError
impl UnwindSafe for ForgivingError
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