[−][src]Enum memory_manager::primitives::MMapError
Common errors from mmap
.
Error codes on Windows is far more complicated then errno
on UNIX-like systems. Also, we
don't know what error code can be caused by an API call, for they are both not documented
and officially-announced as unstable. Therefore on Windows, we try our best to match on
the error, but likely some errors would still end up as an UnknownError
.
Note: items marked as UNIX-specific will not show up on Windows.
Variants
Arguments provided to mmap
is invalid.
(UNIX-specific) Too much memory has been locked.
(UNIX-specific) Any of the following applies:
- No memory available, or
- Maximum number of mappings exceeded, or
RLIMIT_DATA
exceeded
Number of pages overflows unsigned long
.
(32-bit platform only, UNIX-specific)
Errors not recognized, with the raw error code on the host system.
No error at all, NOT EXPECTED. Whenever received, this should be considered as a bug in the implementation.
Implementations
impl MMapError
[src]
pub fn from_errno(e: c_int) -> MMapError
[src]
Get MMapError
from an errno
value.
pub unsafe fn get() -> MMapError
[src]
Get MMapError
from the current errno
value.
Trait Implementations
impl Clone for MMapError
[src]
fn clone(&self) -> MMapError
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for MMapError
[src]
impl Debug for MMapError
[src]
impl Eq for MMapError
[src]
impl PartialEq<MMapError> for MMapError
[src]
impl StructuralEq for MMapError
[src]
impl StructuralPartialEq for MMapError
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,