Enum nix::Error [−][src]
pub enum Error {
Sys(Errno),
InvalidPath,
InvalidUtf8,
UnsupportedOperation,
}
Expand description
Nix Error Type
The nix error type provides a common way of dealing with various system system/libc calls that might fail. Each error has a corresponding errno (usually the one from the underlying OS) to which it can be mapped in addition to implementing other common traits.
Variants
Sys(Errno)
Tuple Fields
0: Errno
InvalidPath
InvalidUtf8
The operation involved a conversion to Rust’s native String type, which failed because the string did not contain all valid UTF-8.
UnsupportedOperation
The operation is not supported by Nix, in this instance either use the libc bindings or consult the module documentation to see if there is a more appropriate interface available.
Implementations
Create a nix Error from a given errno
Create a new invalid argument error (EINVAL
)
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Error
impl UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more