Enum webc::PathSegmentError
source · #[non_exhaustive]
pub enum PathSegmentError {
InvalidUtf8 {
segment: Vec<u8>,
},
IllegalPathComponent(String),
InvalidCharacter(char),
Empty,
NotAbsolute,
}
Expand description
An error that may occur while parsing a PathSegment
or PathSegments
.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidUtf8
The segment wasn’t valid UTF-8.
IllegalPathComponent(String)
Found a path segment that isn’t allowed.
InvalidCharacter(char)
Found a path segment containing illegal characters.
Empty
The path segment was empty.
NotAbsolute
The path wasn’t absolute.
Trait Implementations§
source§impl Clone for PathSegmentError
impl Clone for PathSegmentError
source§fn clone(&self) -> PathSegmentError
fn clone(&self) -> PathSegmentError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PathSegmentError
impl Debug for PathSegmentError
source§impl Display for PathSegmentError
impl Display for PathSegmentError
source§impl Error for PathSegmentError
impl Error for PathSegmentError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
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
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<PathSegmentError> for LookupError
impl From<PathSegmentError> for LookupError
source§fn from(source: PathSegmentError) -> Self
fn from(source: PathSegmentError) -> Self
Converts to this type from the input type.
source§impl From<PathSegmentError> for VolumeError
impl From<PathSegmentError> for VolumeError
source§fn from(source: PathSegmentError) -> Self
fn from(source: PathSegmentError) -> Self
Converts to this type from the input type.
source§impl PartialEq<PathSegmentError> for PathSegmentError
impl PartialEq<PathSegmentError> for PathSegmentError
source§fn eq(&self, other: &PathSegmentError) -> bool
fn eq(&self, other: &PathSegmentError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.