Enum sysctl::SysctlError
source · [−]pub enum SysctlError {
NotFound(String),
ExtractionError,
ParseError,
MissingImplementation,
IoError(Error),
Utf8Error(Utf8Error),
NoReadAccess,
NoWriteAccess,
NotSupported,
ShortRead {
read: usize,
reported: usize,
},
InvalidCStr(FromBytesWithNulError),
}
Variants
NotFound(String)
ExtractionError
ParseError
MissingImplementation
IoError(Error)
Utf8Error(Utf8Error)
NoReadAccess
NoWriteAccess
NotSupported
ShortRead
InvalidCStr(FromBytesWithNulError)
Trait Implementations
sourceimpl Debug for SysctlError
impl Debug for SysctlError
sourceimpl Display for SysctlError
impl Display for SysctlError
sourceimpl Error for SysctlError
impl Error for SysctlError
sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<Error> for SysctlError
impl From<Error> for SysctlError
sourceimpl From<FromBytesWithNulError> for SysctlError
impl From<FromBytesWithNulError> for SysctlError
sourcefn from(source: FromBytesWithNulError) -> Self
fn from(source: FromBytesWithNulError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for SysctlError
impl Send for SysctlError
impl Sync for SysctlError
impl Unpin for SysctlError
impl !UnwindSafe for SysctlError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more