Enum userfaultfd::Error
source · pub enum Error {
CopyFailed(Errno),
PartiallyCopied(usize),
IncompleteMsg {
read: usize,
expected: usize,
},
SystemError(Error),
ReadEof,
UnrecognizedEvent(u8),
UnrecognizedIoctls(u64),
UnsupportedIoctls(IoctlFlags),
ZeropageFailed(Errno),
}Expand description
Errors for this crate.
Several of these errors contain an underlying Errno value; see
userfaultfd(2) and
ioctl_userfaultfd(2) for more
details on how to interpret these errors.
Variants§
CopyFailed(Errno)
Copy ioctl failure with errno value.
PartiallyCopied(usize)
Copy ioctl failure with copied length.
IncompleteMsg
Failure to read a full uffd_msg struct from the underlying file descriptor.
SystemError(Error)
Generic system error.
ReadEof
End-of-file was read from the underlying file descriptor.
UnrecognizedEvent(u8)
An unrecognized event code was found in a uffd_msg struct.
UnrecognizedIoctls(u64)
An unrecognized ioctl bit was set in the result of API initialization or registration.
UnsupportedIoctls(IoctlFlags)
Requested ioctls were not available when initializing the API.
ZeropageFailed(Errno)
Zeropage ioctl failure with errno value.
Trait Implementations§
source§impl Error for Error
impl Error for Error
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()