Enum rhymuri::Error [−][src]
This is the enumeration of all the different kinds of errors which this crate generates.
Variants
CannotExpressAsUtf8(FromUtf8Error)
One or more components of the URI contains a non-UTF8 sequence, and so cannot be converted to a Rust string.
URI begins with an empty scheme, such as ://www.example.com
IllegalCharacter(Context)
URI contains a character which is not permitted in the context where it
was encountered; for example, a caret (^
) in a query:
http://www.example.com?eat_my_^
URI contains an incorrect percent encoding, such as
http://www.example.com?foo=%GG
IllegalPortNumber(ParseIntError)
URI contains an invalid port number, such as
http://www.example.com:99999
or http://www.example.com:foo
URI contains an IPv4 address with one or more bad parts, such as
http://[::ffff:1.2.3.256]/
URI contains an IP address with missing parts, such as
http://[::ffff:1.2.3]/
URI contains an IP address with too many parts, such as
http://[::ffff:1.2.3.4.8]/
URI contains an IPv6 address with too many digits, such as
http://[20001:db8:85a3::1]/
URI contains an IPv6 address with more than one double-colon, such as
http://[2001:db8:85a3::8a2e::]/
URI contains an IPv6 address that is truncated, such as
http://[2001:db8:85a3::8a2e:0:]/
Trait Implementations
impl Clone for Error
[src]
impl Debug for Error
[src]
impl Display for Error
[src]
impl Error for Error
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
pub fn description(&self) -> &str
1.0.0[src]
pub fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<FromUtf8Error> for Error
[src]
fn from(source: FromUtf8Error) -> Self
[src]
impl PartialEq<Error> for Error
[src]
impl StructuralPartialEq for Error
[src]
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,