Module errno

Source
Expand description

Safe wrappers around errno functions

§Example

use nix::errno::Errno;

Errno::EIO.set();
assert_eq!(Errno::last(), Errno::EIO);

Errno::clear();
assert_eq!(Errno::last(), Errno::from_raw(0));

Modules§

consts 🔒

Enums§

Errno

Traits§

ErrnoSentinel
The sentinel value indicates that a function failed and more detailed information about the error can be found in errno

Functions§

desc 🔒
errnoDeprecated
Returns the platform-specific value of errno
errno_location 🔒
from_i32Deprecated