Module errno

Source
Expand description

The rustix Errno type.

This type holds an OS error code, which conceptually corresponds to an errno value.

Β§Safety

Linux uses error codes in -4095..0; we use rustc attributes to describe this restricted range of values.

StructsΒ§

Errno
errnoβ€”An error code.

FunctionsΒ§

try_decode_c_int πŸ”’
Check for an error from the result of a syscall which encodes a c::c_int on success.
try_decode_c_uint πŸ”’
Check for an error from the result of a syscall which encodes a c::c_uint on success.
try_decode_error πŸ”’ ⚠
Check for an error from the result of a syscall which does not return on success. On success, return the unconsumed raw value.
try_decode_raw_fd πŸ”’ ⚠
Check for an error from the result of a syscall which encodes a file descriptor on success.
try_decode_u64 πŸ”’
Check for an error from the result of a syscall which encodes a u64 on success.
try_decode_usize πŸ”’
Check for an error from the result of a syscall which encodes a usize on success.
try_decode_void πŸ”’ ⚠
Check for an error from the result of a syscall which encodes no value on success. On success, return the unconsumed raw value.
try_decode_void_star πŸ”’
Check for an error from the result of a syscall which encodes a *mut c_void on success.