#[non_exhaustive]pub enum EncodingError {
InvalidPercent,
InvalidUtf8,
UnsupportedCharset,
InvalidExtendedValue,
}Expand description
Bytes that do not decode.
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.
InvalidPercent
% not followed by two hex digits, under PercentPolicy::Refuse.
InvalidUtf8
Text that is not valid UTF-8.
UnsupportedCharset
A charset other than UTF-8 or US-ASCII.
InvalidExtendedValue
A malformed filename*.
Trait Implementations§
Source§impl Clone for EncodingError
impl Clone for EncodingError
impl Copy for EncodingError
Source§impl Debug for EncodingError
impl Debug for EncodingError
impl Eq for EncodingError
Source§impl PartialEq for EncodingError
impl PartialEq for EncodingError
impl StructuralPartialEq for EncodingError
Auto Trait Implementations§
impl Freeze for EncodingError
impl RefUnwindSafe for EncodingError
impl Send for EncodingError
impl Sync for EncodingError
impl Unpin for EncodingError
impl UnsafeUnpin for EncodingError
impl UnwindSafe for EncodingError
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