pub enum KmError {
Show 14 variants
NtStatus(NtStatus),
PoolAllocationFailed {
size: usize,
pool_type: u32,
},
MdlOperationFailed {
reason: &'static str,
},
PhysicalMemoryFailed {
address: u64,
size: usize,
},
VirtualMemoryFailed {
address: u64,
size: usize,
reason: &'static str,
},
ProcessOperationFailed {
pid: u32,
reason: &'static str,
},
DeviceCreationFailed {
reason: &'static str,
},
SymbolicLinkFailed {
reason: &'static str,
},
IoctlFailed {
code: u32,
reason: &'static str,
},
InvalidParameter {
context: &'static str,
},
BufferTooSmall {
required: usize,
provided: usize,
},
AccessDenied {
context: &'static str,
},
InvalidAddress {
address: u64,
},
NotImplemented {
feature: &'static str,
},
}Expand description
kernel-mode specific errors
Variants§
NtStatus(NtStatus)
NT status code error
PoolAllocationFailed
pool allocation failed
MdlOperationFailed
MDL operation failed
PhysicalMemoryFailed
physical memory access failed
VirtualMemoryFailed
virtual memory operation failed
ProcessOperationFailed
process operation failed
DeviceCreationFailed
device creation failed
SymbolicLinkFailed
symbolic link creation failed
IoctlFailed
IOCTL operation failed
InvalidParameter
invalid parameter
BufferTooSmall
buffer too small
AccessDenied
access denied
InvalidAddress
invalid address
NotImplemented
not implemented
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KmError
impl RefUnwindSafe for KmError
impl Send for KmError
impl Sync for KmError
impl Unpin for KmError
impl UnwindSafe for KmError
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