Struct hwlocality::errors::NulError
source · pub struct NulError;
Expand description
A string meant for hwloc consumption contained the NUL char
hwloc, like most C APIs, cannot handle strings with inner NULs, so you should not pass a string containing such characters as a parameter to an hwloc API.
This generic error type is only used when the only error that can occur is that the input string is invalid. Otherwise, a more complex error type that accounts for the possibility of NUL errors among others will be emitted.
Trait Implementations§
source§impl Error for NulError
impl Error for NulError
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<NulError> for AddDistancesError
Available on crate feature hwloc-2_5_0
only.
impl From<NulError> for AddDistancesError
Available on crate feature
hwloc-2_5_0
only.source§impl From<NulError> for InsertMiscError
Available on crate feature hwloc-2_3_0
only.
impl From<NulError> for InsertMiscError
Available on crate feature
hwloc-2_3_0
only.source§impl From<NulError> for LocalObjectError
Available on crate feature hwloc-2_5_0
only.
impl From<NulError> for LocalObjectError
Available on crate feature
hwloc-2_5_0
only.source§impl From<NulError> for RegisterError
Available on crate feature hwloc-2_3_0
only.
impl From<NulError> for RegisterError
Available on crate feature
hwloc-2_3_0
only.source§impl From<NulError> for StringInputError
impl From<NulError> for StringInputError
source§impl Ord for NulError
impl Ord for NulError
source§impl PartialEq for NulError
impl PartialEq for NulError
source§impl PartialOrd for NulError
impl PartialOrd for NulError
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 NulError
impl Eq for NulError
impl StructuralPartialEq for NulError
Auto Trait Implementations§
impl RefUnwindSafe for NulError
impl Send for NulError
impl Sync for NulError
impl Unpin for NulError
impl UnwindSafe for NulError
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