pub enum NssStatus {
TryAgain = -2,
Unavailable = -1,
NotFound = 0,
Success = 1,
}Expand description
Return status of an NSS function call.
Defined here: https://github.com/lattera/glibc/blob/895ef79e04a953cac1493863bcae29ad85657ee1/nss/nss.h#L30-L38
Variants§
TryAgain = -2
This service is temporarily unusable. For example, the given address buffer is too small or the backing DNS service is overloaded.
Plugin failure. For example, a bug was detected and the library decided to quit immediately.
NotFound = 0
The query completed successfully without returning any matching hosts.
Pairs with HostStatus::HostNotFound.
Success = 1
Request succeeded. Caller should check the linked list of results.
Trait Implementations§
impl Eq for NssStatus
impl StructuralPartialEq for NssStatus
Auto Trait Implementations§
impl Freeze for NssStatus
impl RefUnwindSafe for NssStatus
impl Send for NssStatus
impl Sync for NssStatus
impl Unpin for NssStatus
impl UnsafeUnpin for NssStatus
impl UnwindSafe for NssStatus
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more