[−][src]Enum uriparse::relative_reference::RelativeReferenceError
An error representing an invalid relative reference.
Variants (Non-exhaustive)
Represents the case where 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.
RelativeReference::from_parts
).
Authority(AuthorityError)
The authority component of the relative reference was invalid.
Fragment(FragmentError)
The fragment component of the relative reference was invalid.
Path(PathError)
The path component of the relative reference was invalid.
Query(QueryError)
The query 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 RelativeReferenceBuilder
.
When parsing from some byte string source, if the source ends up being a URI, then it is obviously not a relative reference.
This can only occur when parsing from a byte string source.
Represents the case where the first path segment contains a ':'
. This is not allowed
because it would be interpreted as a scheme component.
This can only occur when using creation functions that act on individual parts (e.g.
RelativeReference::from_parts
).
Trait Implementations
impl Clone for RelativeReferenceError
[src]
fn clone(&self) -> RelativeReferenceError
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for RelativeReferenceError
[src]
impl Debug for RelativeReferenceError
[src]
impl Display for RelativeReferenceError
[src]
impl Eq for RelativeReferenceError
[src]
impl Error for RelativeReferenceError
[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 RelativeReferenceError
[src]
fn from(value: AuthorityError) -> Self
[src]
impl From<FragmentError> for RelativeReferenceError
[src]
fn from(value: FragmentError) -> Self
[src]
impl From<Infallible> for RelativeReferenceError
[src]
fn from(_: Infallible) -> Self
[src]
impl From<PathError> for RelativeReferenceError
[src]
impl From<QueryError> for RelativeReferenceError
[src]
fn from(value: QueryError) -> Self
[src]
impl Hash for RelativeReferenceError
[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<RelativeReferenceError> for RelativeReferenceError
[src]
fn eq(&self, other: &RelativeReferenceError) -> bool
[src]
fn ne(&self, other: &RelativeReferenceError) -> bool
[src]
impl StructuralEq for RelativeReferenceError
[src]
impl StructuralPartialEq for RelativeReferenceError
[src]
impl TryFrom<URIReferenceError> for RelativeReferenceError
[src]
Auto Trait Implementations
impl RefUnwindSafe for RelativeReferenceError
impl Send for RelativeReferenceError
impl Sync for RelativeReferenceError
impl Unpin for RelativeReferenceError
impl UnwindSafe for RelativeReferenceError
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>,