/// Construct a `SystemCallError` enum based on a 64-bit value.
Construct a `SystemCallError` enum based on a 64-bit value.
Construct a ` SystemCallError ` enum based on a 64 - bit value .
fn from(e: u64) -> SystemCallError {
        match e {
            1 => SystemCallError::NotLogged,
            2 => SystemCallError::NotSupported,
            3 => SystemCallError::VSpaceAlreadyMapped,
            4 => SystemCallError::OutOfMemory,
            5 => SystemCallError::InternalError,
            6 => SystemCallError::BadAddress,
            7 => SystemCallError::BadFileDescriptor,
            8 => SystemCallError::BadFlags,
            9 => SystemCallError::PermissionError,
            10 => SystemCallError::OffsetError,
            _ => SystemCallError::Unknown,
        }
    }
fn from ( e : u64 ) -> SystemCallError { match e { 1 => SystemCallError :: NotLogged , 2 => SystemCallError :: NotSupported , 3 => SystemCallError :: VSpaceAlreadyMapped , 4 => SystemCallError :: OutOfMemory , 5 => SystemCallError :: InternalError , 6 => SystemCallError :: BadAddress , 7 => SystemCallError :: BadFileDescriptor , 8 => SystemCallError :: BadFlags , 9 => SystemCallError :: PermissionError , 10 => SystemCallError :: OffsetError , _ => SystemCallError :: Unknown , } }
Construct a `SystemCallError` enum based on a 64-bit value.
Construct a ` SystemCallError ` enum based on a 64 - bit value .
e
u64