pub fn from(errno: libc::c_int) -> Result<(), Self> {
        if errno == 0 {
            Ok(())
        } else {
            Err(Errno {
                errno: errno as i64,
            })
        }
    }
/// Check that the given errno number is zero, otherwise, return
/// an `Errno` as a result.
Check that the given errno number is zero, otherwise, return
an `Errno` as a result.
Check that the given errno number is zero otherwise return an ` Errno ` as a result .
pub fn from(errno: libc::c_int) -> Result<(), Self> {
        if errno == 0 {
            Ok(())
        } else {
            Err(Errno {
                errno: errno as i64,
            })
        }
    }
pub fn from ( errno : libc :: c_int ) -> Result < ( ) , Self > { if errno == 0 { Ok ( ( ) ) } else { Err ( Errno { errno : errno as i64 , } ) } }
Check that the given errno number is zero, otherwise, return
an `Errno` as a result.
Check that the given errno number is zero otherwise return an ` Errno ` as a result .
errno
libc::c_int
errno
libc::c_int