#[non_exhaustive]pub enum InputErrorKind {
InvalidByte,
InvalidPadding,
NonCanonicalTrailingBits,
InvalidLength,
TruncatedInput,
TrailingData,
InvalidLineWrap,
}Expand description
Redacted malformed-input classification.
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.
InvalidByte
A byte is outside the selected alphabet.
InvalidPadding
Padding is missing, forbidden, misplaced, or excessive.
NonCanonicalTrailingBits
Unused trailing bits are non-zero.
InvalidLength
The encoded length cannot represent a complete value.
TruncatedInput
Finishing found an incomplete encoded quantum.
TrailingData
Input followed a terminal padded quantum.
InvalidLineWrap
Wrapped body layout is malformed.
Implementations§
Trait Implementations§
Source§impl Clone for InputErrorKind
impl Clone for InputErrorKind
Source§fn clone(&self) -> InputErrorKind
fn clone(&self) -> InputErrorKind
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 InputErrorKind
Source§impl Debug for InputErrorKind
impl Debug for InputErrorKind
impl Eq for InputErrorKind
Source§impl Hash for InputErrorKind
impl Hash for InputErrorKind
Source§impl PartialEq for InputErrorKind
impl PartialEq for InputErrorKind
impl StructuralPartialEq for InputErrorKind
Auto Trait Implementations§
impl Freeze for InputErrorKind
impl RefUnwindSafe for InputErrorKind
impl Send for InputErrorKind
impl Sync for InputErrorKind
impl Unpin for InputErrorKind
impl UnsafeUnpin for InputErrorKind
impl UnwindSafe for InputErrorKind
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