pub enum UriError<T> {
Uri(InvalidUri<T>),
Reference(InvalidUriRef<T>),
Scheme(InvalidScheme<T>),
Authority(InvalidAuthority<T>),
UserInfo(InvalidUserInfo<T>),
Host(InvalidHost<T>),
Port(InvalidPort<T>),
Path(InvalidPath<T>),
PathSegment(InvalidSegment<T>),
Query(InvalidQuery<T>),
Fragment(InvalidFragment<T>),
}
Variants§
Uri(InvalidUri<T>)
Reference(InvalidUriRef<T>)
Scheme(InvalidScheme<T>)
Authority(InvalidAuthority<T>)
UserInfo(InvalidUserInfo<T>)
Host(InvalidHost<T>)
Port(InvalidPort<T>)
Path(InvalidPath<T>)
PathSegment(InvalidSegment<T>)
Query(InvalidQuery<T>)
Fragment(InvalidFragment<T>)
Trait Implementations§
source§impl<T> Display for UriError<T>where
InvalidUri<T>: Display,
InvalidUriRef<T>: Display,
InvalidScheme<T>: Display,
InvalidAuthority<T>: Display,
InvalidUserInfo<T>: Display,
InvalidHost<T>: Display,
InvalidPort<T>: Display,
InvalidPath<T>: Display,
InvalidSegment<T>: Display,
InvalidQuery<T>: Display,
InvalidFragment<T>: Display,
impl<T> Display for UriError<T>where
InvalidUri<T>: Display,
InvalidUriRef<T>: Display,
InvalidScheme<T>: Display,
InvalidAuthority<T>: Display,
InvalidUserInfo<T>: Display,
InvalidHost<T>: Display,
InvalidPort<T>: Display,
InvalidPath<T>: Display,
InvalidSegment<T>: Display,
InvalidQuery<T>: Display,
InvalidFragment<T>: Display,
source§impl<T> Error for UriError<T>where
InvalidUri<T>: Error + 'static,
InvalidUriRef<T>: Error + 'static,
InvalidScheme<T>: Error + 'static,
InvalidAuthority<T>: Error + 'static,
InvalidUserInfo<T>: Error + 'static,
InvalidHost<T>: Error + 'static,
InvalidPort<T>: Error + 'static,
InvalidPath<T>: Error + 'static,
InvalidSegment<T>: Error + 'static,
InvalidQuery<T>: Error + 'static,
InvalidFragment<T>: Error + 'static,
Self: Debug + Display,
impl<T> Error for UriError<T>where
InvalidUri<T>: Error + 'static,
InvalidUriRef<T>: Error + 'static,
InvalidScheme<T>: Error + 'static,
InvalidAuthority<T>: Error + 'static,
InvalidUserInfo<T>: Error + 'static,
InvalidHost<T>: Error + 'static,
InvalidPort<T>: Error + 'static,
InvalidPath<T>: Error + 'static,
InvalidSegment<T>: Error + 'static,
InvalidQuery<T>: Error + 'static,
InvalidFragment<T>: Error + 'static,
Self: Debug + Display,
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()
source§impl<'a> From<InvalidAuthority<&'a [u8]>> for UriError<Cow<'a, [u8]>>
impl<'a> From<InvalidAuthority<&'a [u8]>> for UriError<Cow<'a, [u8]>>
source§fn from(InvalidAuthority: InvalidAuthority<&'a [u8]>) -> Self
fn from(InvalidAuthority: InvalidAuthority<&'a [u8]>) -> Self
Converts to this type from the input type.
source§impl<'a> From<InvalidAuthority<&'a str>> for UriError<Cow<'a, str>>
impl<'a> From<InvalidAuthority<&'a str>> for UriError<Cow<'a, str>>
source§fn from(InvalidAuthority: InvalidAuthority<&'a str>) -> Self
fn from(InvalidAuthority: InvalidAuthority<&'a str>) -> Self
Converts to this type from the input type.
source§impl<'a> From<InvalidAuthority<String>> for UriError<Cow<'a, str>>
impl<'a> From<InvalidAuthority<String>> for UriError<Cow<'a, str>>
source§fn from(InvalidAuthority: InvalidAuthority<String>) -> Self
fn from(InvalidAuthority: InvalidAuthority<String>) -> Self
Converts to this type from the input type.
source§impl<T> From<InvalidAuthority<T>> for UriError<T>
impl<T> From<InvalidAuthority<T>> for UriError<T>
source§fn from(source: InvalidAuthority<T>) -> Self
fn from(source: InvalidAuthority<T>) -> Self
Converts to this type from the input type.
source§impl<'a> From<InvalidFragment<&'a [u8]>> for UriError<Cow<'a, [u8]>>
impl<'a> From<InvalidFragment<&'a [u8]>> for UriError<Cow<'a, [u8]>>
source§fn from(InvalidFragment: InvalidFragment<&'a [u8]>) -> Self
fn from(InvalidFragment: InvalidFragment<&'a [u8]>) -> Self
Converts to this type from the input type.
source§impl<'a> From<InvalidFragment<&'a str>> for UriError<Cow<'a, str>>
impl<'a> From<InvalidFragment<&'a str>> for UriError<Cow<'a, str>>
source§fn from(InvalidFragment: InvalidFragment<&'a str>) -> Self
fn from(InvalidFragment: InvalidFragment<&'a str>) -> Self
Converts to this type from the input type.
source§impl<'a> From<InvalidFragment<String>> for UriError<Cow<'a, str>>
impl<'a> From<InvalidFragment<String>> for UriError<Cow<'a, str>>
source§fn from(InvalidFragment: InvalidFragment<String>) -> Self
fn from(InvalidFragment: InvalidFragment<String>) -> Self
Converts to this type from the input type.
source§impl<T> From<InvalidFragment<T>> for UriError<T>
impl<T> From<InvalidFragment<T>> for UriError<T>
source§fn from(source: InvalidFragment<T>) -> Self
fn from(source: InvalidFragment<T>) -> Self
Converts to this type from the input type.
source§impl<'a> From<InvalidHost<&'a [u8]>> for UriError<Cow<'a, [u8]>>
impl<'a> From<InvalidHost<&'a [u8]>> for UriError<Cow<'a, [u8]>>
source§fn from(InvalidHost: InvalidHost<&'a [u8]>) -> Self
fn from(InvalidHost: InvalidHost<&'a [u8]>) -> Self
Converts to this type from the input type.
source§impl<'a> From<InvalidHost<&'a str>> for UriError<Cow<'a, str>>
impl<'a> From<InvalidHost<&'a str>> for UriError<Cow<'a, str>>
source§fn from(InvalidHost: InvalidHost<&'a str>) -> Self
fn from(InvalidHost: InvalidHost<&'a str>) -> Self
Converts to this type from the input type.
source§impl<'a> From<InvalidHost<String>> for UriError<Cow<'a, str>>
impl<'a> From<InvalidHost<String>> for UriError<Cow<'a, str>>
source§fn from(InvalidHost: InvalidHost<String>) -> Self
fn from(InvalidHost: InvalidHost<String>) -> Self
Converts to this type from the input type.
source§impl<T> From<InvalidHost<T>> for UriError<T>
impl<T> From<InvalidHost<T>> for UriError<T>
source§fn from(source: InvalidHost<T>) -> Self
fn from(source: InvalidHost<T>) -> Self
Converts to this type from the input type.
source§impl<'a> From<InvalidPath<&'a [u8]>> for UriError<Cow<'a, [u8]>>
impl<'a> From<InvalidPath<&'a [u8]>> for UriError<Cow<'a, [u8]>>
source§fn from(InvalidPath: InvalidPath<&'a [u8]>) -> Self
fn from(InvalidPath: InvalidPath<&'a [u8]>) -> Self
Converts to this type from the input type.
source§impl<'a> From<InvalidPath<&'a str>> for UriError<Cow<'a, str>>
impl<'a> From<InvalidPath<&'a str>> for UriError<Cow<'a, str>>
source§fn from(InvalidPath: InvalidPath<&'a str>) -> Self
fn from(InvalidPath: InvalidPath<&'a str>) -> Self
Converts to this type from the input type.
source§impl<'a> From<InvalidPath<String>> for UriError<Cow<'a, str>>
impl<'a> From<InvalidPath<String>> for UriError<Cow<'a, str>>
source§fn from(InvalidPath: InvalidPath<String>) -> Self
fn from(InvalidPath: InvalidPath<String>) -> Self
Converts to this type from the input type.
source§impl<T> From<InvalidPath<T>> for UriError<T>
impl<T> From<InvalidPath<T>> for UriError<T>
source§fn from(source: InvalidPath<T>) -> Self
fn from(source: InvalidPath<T>) -> Self
Converts to this type from the input type.
source§impl<'a> From<InvalidPort<&'a [u8]>> for UriError<Cow<'a, [u8]>>
impl<'a> From<InvalidPort<&'a [u8]>> for UriError<Cow<'a, [u8]>>
source§fn from(InvalidPort: InvalidPort<&'a [u8]>) -> Self
fn from(InvalidPort: InvalidPort<&'a [u8]>) -> Self
Converts to this type from the input type.
source§impl<'a> From<InvalidPort<&'a str>> for UriError<Cow<'a, str>>
impl<'a> From<InvalidPort<&'a str>> for UriError<Cow<'a, str>>
source§fn from(InvalidPort: InvalidPort<&'a str>) -> Self
fn from(InvalidPort: InvalidPort<&'a str>) -> Self
Converts to this type from the input type.
source§impl<'a> From<InvalidPort<String>> for UriError<Cow<'a, str>>
impl<'a> From<InvalidPort<String>> for UriError<Cow<'a, str>>
source§fn from(InvalidPort: InvalidPort<String>) -> Self
fn from(InvalidPort: InvalidPort<String>) -> Self
Converts to this type from the input type.
source§impl<T> From<InvalidPort<T>> for UriError<T>
impl<T> From<InvalidPort<T>> for UriError<T>
source§fn from(source: InvalidPort<T>) -> Self
fn from(source: InvalidPort<T>) -> Self
Converts to this type from the input type.
source§impl<'a> From<InvalidQuery<&'a [u8]>> for UriError<Cow<'a, [u8]>>
impl<'a> From<InvalidQuery<&'a [u8]>> for UriError<Cow<'a, [u8]>>
source§fn from(InvalidQuery: InvalidQuery<&'a [u8]>) -> Self
fn from(InvalidQuery: InvalidQuery<&'a [u8]>) -> Self
Converts to this type from the input type.
source§impl<'a> From<InvalidQuery<&'a str>> for UriError<Cow<'a, str>>
impl<'a> From<InvalidQuery<&'a str>> for UriError<Cow<'a, str>>
source§fn from(InvalidQuery: InvalidQuery<&'a str>) -> Self
fn from(InvalidQuery: InvalidQuery<&'a str>) -> Self
Converts to this type from the input type.
source§impl<'a> From<InvalidQuery<String>> for UriError<Cow<'a, str>>
impl<'a> From<InvalidQuery<String>> for UriError<Cow<'a, str>>
source§fn from(InvalidQuery: InvalidQuery<String>) -> Self
fn from(InvalidQuery: InvalidQuery<String>) -> Self
Converts to this type from the input type.
source§impl<T> From<InvalidQuery<T>> for UriError<T>
impl<T> From<InvalidQuery<T>> for UriError<T>
source§fn from(source: InvalidQuery<T>) -> Self
fn from(source: InvalidQuery<T>) -> Self
Converts to this type from the input type.
source§impl<'a> From<InvalidScheme<&'a [u8]>> for UriError<Cow<'a, [u8]>>
impl<'a> From<InvalidScheme<&'a [u8]>> for UriError<Cow<'a, [u8]>>
source§fn from(InvalidScheme: InvalidScheme<&'a [u8]>) -> Self
fn from(InvalidScheme: InvalidScheme<&'a [u8]>) -> Self
Converts to this type from the input type.
source§impl<'a> From<InvalidScheme<&'a str>> for UriError<Cow<'a, str>>
impl<'a> From<InvalidScheme<&'a str>> for UriError<Cow<'a, str>>
source§fn from(InvalidScheme: InvalidScheme<&'a str>) -> Self
fn from(InvalidScheme: InvalidScheme<&'a str>) -> Self
Converts to this type from the input type.
source§impl<'a> From<InvalidScheme<String>> for UriError<Cow<'a, str>>
impl<'a> From<InvalidScheme<String>> for UriError<Cow<'a, str>>
source§fn from(InvalidScheme: InvalidScheme<String>) -> Self
fn from(InvalidScheme: InvalidScheme<String>) -> Self
Converts to this type from the input type.
source§impl<T> From<InvalidScheme<T>> for UriError<T>
impl<T> From<InvalidScheme<T>> for UriError<T>
source§fn from(source: InvalidScheme<T>) -> Self
fn from(source: InvalidScheme<T>) -> Self
Converts to this type from the input type.
source§impl<'a> From<InvalidSegment<&'a [u8]>> for UriError<Cow<'a, [u8]>>
impl<'a> From<InvalidSegment<&'a [u8]>> for UriError<Cow<'a, [u8]>>
source§fn from(InvalidSegment: InvalidSegment<&'a [u8]>) -> Self
fn from(InvalidSegment: InvalidSegment<&'a [u8]>) -> Self
Converts to this type from the input type.
source§impl<'a> From<InvalidSegment<&'a str>> for UriError<Cow<'a, str>>
impl<'a> From<InvalidSegment<&'a str>> for UriError<Cow<'a, str>>
source§fn from(InvalidSegment: InvalidSegment<&'a str>) -> Self
fn from(InvalidSegment: InvalidSegment<&'a str>) -> Self
Converts to this type from the input type.
source§impl<'a> From<InvalidSegment<String>> for UriError<Cow<'a, str>>
impl<'a> From<InvalidSegment<String>> for UriError<Cow<'a, str>>
source§fn from(InvalidSegment: InvalidSegment<String>) -> Self
fn from(InvalidSegment: InvalidSegment<String>) -> Self
Converts to this type from the input type.
source§impl<T> From<InvalidSegment<T>> for UriError<T>
impl<T> From<InvalidSegment<T>> for UriError<T>
source§fn from(source: InvalidSegment<T>) -> Self
fn from(source: InvalidSegment<T>) -> Self
Converts to this type from the input type.
source§impl<'a> From<InvalidUri<&'a [u8]>> for UriError<Cow<'a, [u8]>>
impl<'a> From<InvalidUri<&'a [u8]>> for UriError<Cow<'a, [u8]>>
source§fn from(InvalidUri: InvalidUri<&'a [u8]>) -> Self
fn from(InvalidUri: InvalidUri<&'a [u8]>) -> Self
Converts to this type from the input type.
source§impl<'a> From<InvalidUri<&'a str>> for UriError<Cow<'a, str>>
impl<'a> From<InvalidUri<&'a str>> for UriError<Cow<'a, str>>
source§fn from(InvalidUri: InvalidUri<&'a str>) -> Self
fn from(InvalidUri: InvalidUri<&'a str>) -> Self
Converts to this type from the input type.
source§impl<'a> From<InvalidUri<String>> for UriError<Cow<'a, str>>
impl<'a> From<InvalidUri<String>> for UriError<Cow<'a, str>>
source§fn from(InvalidUri: InvalidUri<String>) -> Self
fn from(InvalidUri: InvalidUri<String>) -> Self
Converts to this type from the input type.
source§impl<T> From<InvalidUri<T>> for UriError<T>
impl<T> From<InvalidUri<T>> for UriError<T>
source§fn from(source: InvalidUri<T>) -> Self
fn from(source: InvalidUri<T>) -> Self
Converts to this type from the input type.
source§impl<'a> From<InvalidUriRef<&'a [u8]>> for UriError<Cow<'a, [u8]>>
impl<'a> From<InvalidUriRef<&'a [u8]>> for UriError<Cow<'a, [u8]>>
source§fn from(InvalidUriRef: InvalidUriRef<&'a [u8]>) -> Self
fn from(InvalidUriRef: InvalidUriRef<&'a [u8]>) -> Self
Converts to this type from the input type.
source§impl<'a> From<InvalidUriRef<&'a str>> for UriError<Cow<'a, str>>
impl<'a> From<InvalidUriRef<&'a str>> for UriError<Cow<'a, str>>
source§fn from(InvalidUriRef: InvalidUriRef<&'a str>) -> Self
fn from(InvalidUriRef: InvalidUriRef<&'a str>) -> Self
Converts to this type from the input type.
source§impl<'a> From<InvalidUriRef<String>> for UriError<Cow<'a, str>>
impl<'a> From<InvalidUriRef<String>> for UriError<Cow<'a, str>>
source§fn from(InvalidUriRef: InvalidUriRef<String>) -> Self
fn from(InvalidUriRef: InvalidUriRef<String>) -> Self
Converts to this type from the input type.
source§impl<T> From<InvalidUriRef<T>> for UriError<T>
impl<T> From<InvalidUriRef<T>> for UriError<T>
source§fn from(source: InvalidUriRef<T>) -> Self
fn from(source: InvalidUriRef<T>) -> Self
Converts to this type from the input type.
source§impl<'a> From<InvalidUserInfo<&'a [u8]>> for UriError<Cow<'a, [u8]>>
impl<'a> From<InvalidUserInfo<&'a [u8]>> for UriError<Cow<'a, [u8]>>
source§fn from(InvalidUserInfo: InvalidUserInfo<&'a [u8]>) -> Self
fn from(InvalidUserInfo: InvalidUserInfo<&'a [u8]>) -> Self
Converts to this type from the input type.
source§impl<'a> From<InvalidUserInfo<&'a str>> for UriError<Cow<'a, str>>
impl<'a> From<InvalidUserInfo<&'a str>> for UriError<Cow<'a, str>>
source§fn from(InvalidUserInfo: InvalidUserInfo<&'a str>) -> Self
fn from(InvalidUserInfo: InvalidUserInfo<&'a str>) -> Self
Converts to this type from the input type.
source§impl<'a> From<InvalidUserInfo<String>> for UriError<Cow<'a, str>>
impl<'a> From<InvalidUserInfo<String>> for UriError<Cow<'a, str>>
source§fn from(InvalidUserInfo: InvalidUserInfo<String>) -> Self
fn from(InvalidUserInfo: InvalidUserInfo<String>) -> Self
Converts to this type from the input type.
source§impl<T> From<InvalidUserInfo<T>> for UriError<T>
impl<T> From<InvalidUserInfo<T>> for UriError<T>
source§fn from(source: InvalidUserInfo<T>) -> Self
fn from(source: InvalidUserInfo<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> RefUnwindSafe for UriError<T>where
T: RefUnwindSafe,
impl<T> Send for UriError<T>where
T: Send,
impl<T> Sync for UriError<T>where
T: Sync,
impl<T> Unpin for UriError<T>where
T: Unpin,
impl<T> UnwindSafe for UriError<T>where
T: UnwindSafe,
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