[][src]Enum memory_manager::primitives::MMapError

pub enum MMapError {
    InvalidArguments,
    TryAgain,
    NoMemory,
    LengthOverflow,
    UnknownError(u32),
    NoError,
}

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

InvalidArguments

Arguments provided to mmap is invalid.

TryAgain

(UNIX-specific) Too much memory has been locked.

NoMemory

(UNIX-specific) Any of the following applies:

LengthOverflow

Number of pages overflows unsigned long. (32-bit platform only, UNIX-specific)

UnknownError(u32)

Errors not recognized, with the raw error code on the host system.

NoError

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]

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

impl Send for MMapError

impl Sync for MMapError

impl Unpin for MMapError

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.