pub const ProtectMemoryError = error 1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070pub const ProtectMemoryError = error{
UnsupportedOperation,
/// OpenBSD will refuse to change memory protection if the specified region
/// contains any pages that have previously been marked immutable using the
/// `mimmutable` function.
PermissionDenied,
/// The memory cannot be given the specified access. This can happen, for
/// example, if you memory map a file to which you have read-only access,
/// then use `protectMemory` to mark it writable.
AccessDenied,
/// Changing the protection of a memory region would result in the total
/// number of mappings with distinct attributes exceeding the allowed
/// maximum.
OutOfMemory,
} || Io.UnexpectedError