Enum iref::uri::UriError

source ·
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: Debug> Debug for UriError<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T> Display for UriError<T>

source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
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,

source§

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

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl<'a> From<InvalidAuthority<&'a [u8]>> for UriError<Cow<'a, [u8]>>

source§

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>>

source§

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>>

source§

fn from(InvalidAuthority: InvalidAuthority<String>) -> Self

Converts to this type from the input type.
source§

impl<T> From<InvalidAuthority<T>> for UriError<T>

source§

fn from(source: InvalidAuthority<T>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<InvalidAuthority<Vec<u8>>> for UriError<Cow<'a, [u8]>>

source§

fn from(InvalidAuthority: InvalidAuthority<Vec<u8>>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<InvalidFragment<&'a [u8]>> for UriError<Cow<'a, [u8]>>

source§

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>>

source§

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>>

source§

fn from(InvalidFragment: InvalidFragment<String>) -> Self

Converts to this type from the input type.
source§

impl<T> From<InvalidFragment<T>> for UriError<T>

source§

fn from(source: InvalidFragment<T>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<InvalidFragment<Vec<u8>>> for UriError<Cow<'a, [u8]>>

source§

fn from(InvalidFragment: InvalidFragment<Vec<u8>>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<InvalidHost<&'a [u8]>> for UriError<Cow<'a, [u8]>>

source§

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>>

source§

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>>

source§

fn from(InvalidHost: InvalidHost<String>) -> Self

Converts to this type from the input type.
source§

impl<T> From<InvalidHost<T>> for UriError<T>

source§

fn from(source: InvalidHost<T>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<InvalidHost<Vec<u8>>> for UriError<Cow<'a, [u8]>>

source§

fn from(InvalidHost: InvalidHost<Vec<u8>>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<InvalidPath<&'a [u8]>> for UriError<Cow<'a, [u8]>>

source§

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>>

source§

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>>

source§

fn from(InvalidPath: InvalidPath<String>) -> Self

Converts to this type from the input type.
source§

impl<T> From<InvalidPath<T>> for UriError<T>

source§

fn from(source: InvalidPath<T>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<InvalidPath<Vec<u8>>> for UriError<Cow<'a, [u8]>>

source§

fn from(InvalidPath: InvalidPath<Vec<u8>>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<InvalidPort<&'a [u8]>> for UriError<Cow<'a, [u8]>>

source§

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>>

source§

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>>

source§

fn from(InvalidPort: InvalidPort<String>) -> Self

Converts to this type from the input type.
source§

impl<T> From<InvalidPort<T>> for UriError<T>

source§

fn from(source: InvalidPort<T>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<InvalidPort<Vec<u8>>> for UriError<Cow<'a, [u8]>>

source§

fn from(InvalidPort: InvalidPort<Vec<u8>>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<InvalidQuery<&'a [u8]>> for UriError<Cow<'a, [u8]>>

source§

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>>

source§

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>>

source§

fn from(InvalidQuery: InvalidQuery<String>) -> Self

Converts to this type from the input type.
source§

impl<T> From<InvalidQuery<T>> for UriError<T>

source§

fn from(source: InvalidQuery<T>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<InvalidQuery<Vec<u8>>> for UriError<Cow<'a, [u8]>>

source§

fn from(InvalidQuery: InvalidQuery<Vec<u8>>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<InvalidScheme<&'a [u8]>> for UriError<Cow<'a, [u8]>>

source§

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>>

source§

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>>

source§

fn from(InvalidScheme: InvalidScheme<String>) -> Self

Converts to this type from the input type.
source§

impl<T> From<InvalidScheme<T>> for UriError<T>

source§

fn from(source: InvalidScheme<T>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<InvalidScheme<Vec<u8>>> for UriError<Cow<'a, [u8]>>

source§

fn from(InvalidScheme: InvalidScheme<Vec<u8>>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<InvalidSegment<&'a [u8]>> for UriError<Cow<'a, [u8]>>

source§

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>>

source§

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>>

source§

fn from(InvalidSegment: InvalidSegment<String>) -> Self

Converts to this type from the input type.
source§

impl<T> From<InvalidSegment<T>> for UriError<T>

source§

fn from(source: InvalidSegment<T>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<InvalidSegment<Vec<u8>>> for UriError<Cow<'a, [u8]>>

source§

fn from(InvalidSegment: InvalidSegment<Vec<u8>>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<InvalidUri<&'a [u8]>> for UriError<Cow<'a, [u8]>>

source§

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>>

source§

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>>

source§

fn from(InvalidUri: InvalidUri<String>) -> Self

Converts to this type from the input type.
source§

impl<T> From<InvalidUri<T>> for UriError<T>

source§

fn from(source: InvalidUri<T>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<InvalidUri<Vec<u8>>> for UriError<Cow<'a, [u8]>>

source§

fn from(InvalidUri: InvalidUri<Vec<u8>>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<InvalidUriRef<&'a [u8]>> for UriError<Cow<'a, [u8]>>

source§

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>>

source§

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>>

source§

fn from(InvalidUriRef: InvalidUriRef<String>) -> Self

Converts to this type from the input type.
source§

impl<T> From<InvalidUriRef<T>> for UriError<T>

source§

fn from(source: InvalidUriRef<T>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<InvalidUriRef<Vec<u8>>> for UriError<Cow<'a, [u8]>>

source§

fn from(InvalidUriRef: InvalidUriRef<Vec<u8>>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<InvalidUserInfo<&'a [u8]>> for UriError<Cow<'a, [u8]>>

source§

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>>

source§

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>>

source§

fn from(InvalidUserInfo: InvalidUserInfo<String>) -> Self

Converts to this type from the input type.
source§

impl<T> From<InvalidUserInfo<T>> for UriError<T>

source§

fn from(source: InvalidUserInfo<T>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<InvalidUserInfo<Vec<u8>>> for UriError<Cow<'a, [u8]>>

source§

fn from(InvalidUserInfo: InvalidUserInfo<Vec<u8>>) -> 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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.