Type Definition uucore::pipes::Error

pub type Error = Errno;
Expand description

Nix’s main error type.

It’s a wrapper around Errno. As such, it’s very interoperable with std::io::Error, but it has the advantages of:

  • Clone
  • Copy
  • Eq
  • Small size
  • Represents all of the system’s errnos, instead of just the most common ones.

Trait Implementations§

source§

impl<T> FromIo<Result<T, Box<dyn UError + 'static, Global>>> for Error

source§

fn map_err_context(self, context: impl FnOnce() -> String) -> UResult<T>