[−][src]Enum uriparse::uri::URIError
An error representing an invalid URI.
Variants (Non-exhaustive)
Represents the case when there is no authority, but the first path segment starts with
"//"
. This is not allowed because it would be interpreted as an authority component.
This can only occur when using creation functions that act on individual parts (e.g.
URI::from_parts
).
Authority(AuthorityError)
The authority component of the relative reference was invalid.
Fragment(FragmentError)
The fragment component of the relative reference was invalid.
This error occurs when you do not specify a path component on the builder.
This can only occur when using URIBuilder
.
This error occurs when you do not specify a scheme component on the builder.
This can only occur when using URIBuilder
.
When parsing from some byte string source, if the source ends up being a relative reference, then it is obviously not a URI.
This can only occur when parsing from a byte string source.
Path(PathError)
The path component of the relative reference was invalid.
Query(QueryError)
The query component of the relative reference was invalid.
Scheme(SchemeError)
The scheme component of the relative reference was invalid.
Trait Implementations
impl Clone for URIError
[src]
impl Copy for URIError
[src]
impl Debug for URIError
[src]
impl Display for URIError
[src]
impl Eq for URIError
[src]
impl Error for URIError
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn description(&self) -> &str
1.0.0[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<AuthorityError> for URIError
[src]
fn from(value: AuthorityError) -> Self
[src]
impl From<FragmentError> for URIError
[src]
fn from(value: FragmentError) -> Self
[src]
impl From<Infallible> for URIError
[src]
fn from(_: Infallible) -> Self
[src]
impl From<PathError> for URIError
[src]
impl From<QueryError> for URIError
[src]
fn from(value: QueryError) -> Self
[src]
impl From<SchemeError> for URIError
[src]
fn from(value: SchemeError) -> Self
[src]
impl Hash for URIError
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<URIError> for URIError
[src]
impl StructuralEq for URIError
[src]
impl StructuralPartialEq for URIError
[src]
impl TryFrom<URIReferenceError> for URIError
[src]
Auto Trait Implementations
impl RefUnwindSafe for URIError
impl Send for URIError
impl Sync for URIError
impl Unpin for URIError
impl UnwindSafe for URIError
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,
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.
fn to_owned(&self) -> T
[src]
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.
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>,