[−][src]Enum uriparse::uri_reference::URIReferenceError
An error representing an invalid URI reference.
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.
URIReference::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 URIReferenceBuilder
.
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.
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.
URIReference::from_parts
).
Trait Implementations
impl Clone for URIReferenceError
[src]
fn clone(&self) -> URIReferenceError
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for URIReferenceError
[src]
impl Debug for URIReferenceError
[src]
impl Display for URIReferenceError
[src]
impl Eq for URIReferenceError
[src]
impl Error for URIReferenceError
[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 URIReferenceError
[src]
fn from(value: AuthorityError) -> Self
[src]
impl From<FragmentError> for URIReferenceError
[src]
fn from(value: FragmentError) -> Self
[src]
impl From<Infallible> for URIReferenceError
[src]
fn from(_: Infallible) -> Self
[src]
impl From<PathError> for URIReferenceError
[src]
impl From<QueryError> for URIReferenceError
[src]
fn from(value: QueryError) -> Self
[src]
impl From<SchemeError> for URIReferenceError
[src]
fn from(value: SchemeError) -> Self
[src]
impl Hash for URIReferenceError
[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<URIReferenceError> for URIReferenceError
[src]
fn eq(&self, other: &URIReferenceError) -> bool
[src]
fn ne(&self, other: &URIReferenceError) -> bool
[src]
impl StructuralEq for URIReferenceError
[src]
impl StructuralPartialEq for URIReferenceError
[src]
impl TryFrom<URIReferenceError> for RelativeReferenceError
[src]
type Error = ()
The type returned in the event of a conversion error.
fn try_from(value: URIReferenceError) -> Result<Self, Self::Error>
[src]
impl TryFrom<URIReferenceError> for URIError
[src]
Auto Trait Implementations
impl RefUnwindSafe for URIReferenceError
impl Send for URIReferenceError
impl Sync for URIReferenceError
impl Unpin for URIReferenceError
impl UnwindSafe for URIReferenceError
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>,