pub enum FromUrlEncodingError {
UriCharacterError {
character: char,
index: usize,
},
Utf8CharacterError {
error: FromUtf8Error,
},
}
Expand description
Error when decoding invalid UTF-8
Variants§
UriCharacterError
Not used. Exists for backwards-compatibility only
Utf8CharacterError
Fields
§
error: FromUtf8Error
Percent-encoded string contained bytes that can’t be expressed in UTF-8
Trait Implementations§
source§impl Debug for FromUrlEncodingError
impl Debug for FromUrlEncodingError
source§impl Display for FromUrlEncodingError
impl Display for FromUrlEncodingError
source§impl Error for FromUrlEncodingError
impl Error for FromUrlEncodingError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()