pub enum FcntlError {
CommandNotImplemented(FcntlCmd),
Errno(Option<c_int>),
Internal,
InvalidArgForCmd,
}Expand description
Error type which functions of this crate will return.
Variants§
CommandNotImplemented(FcntlCmd)
The requested FcntlCmd is not yet handled by our implementation
Errno(Option<c_int>)
The syscall returned the respective error (which may be None, if the errno lookup fails)
Internal
An crate-internal error occured. If you get this error variant, please report this as a bug!
InvalidArgForCmd
The enum variant of arg does not match the expected variant for the requested cmd. No operation was
performed.
Trait Implementations§
Source§impl Clone for FcntlError
impl Clone for FcntlError
Source§fn clone(&self) -> FcntlError
fn clone(&self) -> FcntlError
Returns a duplicate 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 FcntlError
impl Debug for FcntlError
Source§impl Display for FcntlError
impl Display for FcntlError
Source§impl Error for FcntlError
impl Error for FcntlError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 Hash for FcntlError
impl Hash for FcntlError
Source§impl Ord for FcntlError
impl Ord for FcntlError
Source§fn cmp(&self, other: &FcntlError) -> Ordering
fn cmp(&self, other: &FcntlError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for FcntlError
impl PartialEq for FcntlError
Source§impl PartialOrd for FcntlError
impl PartialOrd for FcntlError
impl Copy for FcntlError
impl Eq for FcntlError
impl StructuralPartialEq for FcntlError
Auto Trait Implementations§
impl Freeze for FcntlError
impl RefUnwindSafe for FcntlError
impl Send for FcntlError
impl Sync for FcntlError
impl Unpin for FcntlError
impl UnsafeUnpin for FcntlError
impl UnwindSafe for FcntlError
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