Expand description
Error handling and error types
Most of the interfaces return a std::io::Error.
Usually an error means that the underlying get*_r call failed.
But, there are some other obscure error cases.
In those situations, an io::Error will be returned
which has one of the errors in this module
as its source.
Structs§
- NonUtf8
Error - Error that occurs if non-UTF-8 data is found
- TooLarge
Buffer Required Error - Error that occurs if an entry is unreasonably large
- Unexpected
Null Pointer Error - Error that occurs if
getpw*_rorgetgr*_rreturn unexpectedNULLs
Type Aliases§
- NulError
- Error that occurs if a nul byte was passed to
get*_nam