Enum hwlocality::path::PathError
source · pub enum PathError {
ContainsNul,
NotUnicode,
}
Expand description
Requested file path is not suitable for hwloc consumption
Variants§
ContainsNul
Path contains the NUL char, and is thus not compatible with C
NotUnicode
Path contains non-Unicode data
We need paths to be valid Unicode, even though most operating systems do
not mandate it, because that is a prerequisite for portably converting
paths to char*
for C/hwloc consumption.
Trait Implementations§
source§impl Error for PathError
impl Error for PathError
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<PathError> for FileInputError
impl From<PathError> for FileInputError
source§impl Ord for PathError
impl Ord for PathError
source§impl PartialEq for PathError
impl PartialEq for PathError
source§impl PartialOrd for PathError
impl PartialOrd for PathError
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for PathError
impl Eq for PathError
impl StructuralPartialEq for PathError
Auto Trait Implementations§
impl RefUnwindSafe for PathError
impl Send for PathError
impl Sync for PathError
impl Unpin for PathError
impl UnwindSafe for PathError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more