[−][src]Enum iref::Error
Parsing errors.
These are the different errors raised when some part of an IRI or IRI reference has an invalid syntax or encoding.
Variants
The input data is not a valid UTF-8 encoded string.
The IRI part support percent-encoding, but the input data as an invalid percent-encoded
character.
This can occur for instance while trying to parse a query with the invalid percent encoded
character %9a
: Query::try_from("Hello Error %9a")
.
Occurs when one is trying to convert an IriRef
with no scheme into an Iri
,
or when an IRI is parsed with no scheme.
Occurs when the parsed Scheme
is not syntactically valid.
Note that even in an IRI, only ASCII letters, digit and symbols +
, -
and .
are
allowed.
Occurs when the parsed Authority
is not syntactically valid.
Occurs when the parsed UserInfo
part of an Authority
is not syntactically valid.
Note that the userinfo part cannot include the @
character.
Occurs when the parsed Host
part of an Authority
is not syntactically valid.
Note that the host part cannot include the :
character.
Occurs when the parsed Port
part of an Authority
is not syntactically valid.
This part may only contain ASCII digits.
Occurs when a path Segment
is not syntactically valid.
A Path
segment cannot contain any /
except at the end to denote "open" segments.
Occurs when a Path
is not syntactically valid.
A path cannot contain the characters ?
and #
delimitating the Query
and
Fragment
parts.
Occurs when a Query
part is not syntactically valid.
Occurs when a Fragment
part is not syntactically valid.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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, 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>,