Module error

Module error 

Source
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§

NonUtf8Error
Error that occurs if non-UTF-8 data is found
TooLargeBufferRequiredError
Error that occurs if an entry is unreasonably large
UnexpectedNullPointerError
Error that occurs if getpw*_r or getgr*_r return unexpected NULLs

Type Aliases§

NulError
Error that occurs if a nul byte was passed to get*_nam