pub enum MachError {
ZeroSize,
SizeOverflow {
requested: usize,
},
InvalidViewSize {
requested: usize,
region: usize,
},
InvalidPageSize(c_int),
InvalidAddress(u64),
NullMemoryEntry,
UnexpectedEntrySize {
expected: usize,
actual: u64,
},
Kernel {
operation: &'static str,
code: c_int,
},
}Expand description
Failure to create or restrict a Mach shared-memory capability.
Variants§
ZeroSize
Shared regions cannot be empty.
SizeOverflow
Requested size cannot be page-aligned.
InvalidViewSize
Transition size differs from the quiescent region.
Fields
InvalidPageSize(c_int)
Kernel reported an invalid page size.
InvalidAddress(u64)
Successful allocation returned an unusable address.
NullMemoryEntry
Successful memory-entry creation returned a null capability.
UnexpectedEntrySize
Kernel changed an already aligned entry size.
Fields
Kernel
Mach kernel call failed.
Trait Implementations§
impl Copy for MachError
impl Eq for MachError
Source§impl Error for MachError
impl Error for MachError
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 From<MachError> for MacBindingError
impl From<MachError> for MacBindingError
impl StructuralPartialEq for MachError
Auto Trait Implementations§
impl Freeze for MachError
impl RefUnwindSafe for MachError
impl Send for MachError
impl Sync for MachError
impl Unpin for MachError
impl UnsafeUnpin for MachError
impl UnwindSafe for MachError
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