pub trait SysErr: Debug + Display {
    fn create() -> Self;
    fn from_code(code: i32) -> Self;
}
Expand description

Trait describing systems errors.

Most code in this crate is generic over the error type as long as it implements this trait. The create method is used to create a new error for the last OS error that occurred (on systems which work with an errno/ GetLastError etc. system).

Required Methods

Create error for the last OS error.

Create error from raw OS error code.

Implementors