// ioctl() may return ENOTTY if the specified request does not apply to
// the kind of object that the descriptor fd references.
ioctl() may return ENOTTY if the specified request does not apply to
the kind of object that the descriptor fd references.
ioctl () may return ENOTTY if the specified request does not apply to the kind of object that the descriptor fd references .
fn is_enotty(result: &Result<(), Error>) -> bool {
            match result {
                Err(Error::Init(SgxIoctlError::Io(ref err))) => {
                    err.raw_os_error() == Some(libc::ENOTTY)
                }
                _ => false,
            }
        }
fn is_enotty ( result : & Result < ( ) , Error > ) -> bool { match result { Err ( Error :: Init ( SgxIoctlError :: Io ( ref err ) ) ) => { err . raw_os_error ( ) == Some ( libc :: ENOTTY ) } _ => false , } }
ioctl() may return ENOTTY if the specified request does not apply to
the kind of object that the descriptor fd references.
ioctl () may return ENOTTY if the specified request does not apply to the kind of object that the descriptor fd references .
result
&Result<(), Error>