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_inton success. - try_
decode_ πc_ uint - Check for an error from the result of a syscall which encodes a
c::c_uinton 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
rawvalue. - 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
u64on success. - try_
decode_ πusize - Check for an error from the result of a syscall which encodes a
usizeon 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
rawvalue. - try_
decode_ πvoid_ star - Check for an error from the result of a syscall which encodes a
*mut c_voidon success.