pub fn is_armed(&self) -> Result<bool> {
        // Safe because we are zero-initializing a struct with only primitive member fields.
        let mut spec: libc::itimerspec = unsafe { mem::zeroed() };

        // Safe because timerfd_gettime is trusted to only modify `spec`.
        let ret = unsafe { timerfd_gettime(self.as_raw_fd(), &mut spec) };
        if ret < 0 {
            return errno_result();
        }

        Ok(spec.it_value.tv_sec != 0 || spec.it_value.tv_nsec != 0)
    }
/// Returns `true` if the timer is currently armed.
Returns `true` if the timer is currently armed.
Returns ` true ` if the timer is currently armed .
pub fn is_armed(&self) -> Result<bool> {
        // Safe because we are zero-initializing a struct with only primitive member fields.
        let mut spec: libc::itimerspec = unsafe { mem::zeroed() };
        // Safe because timerfd_gettime is trusted to only modify `spec`.
        let ret = unsafe { timerfd_gettime(self.as_raw_fd(), &mut spec) };
        if ret < 0 {
            return errno_result();
        }
        Ok(spec.it_value.tv_sec != 0 || spec.it_value.tv_nsec != 0)
    }
pub fn is_armed ( & self ) -> Result < bool > { // Safe because we are zero-initializing a struct with only primitive member fields. let mut spec : libc :: itimerspec = unsafe { mem :: zeroed ( ) } ; // Safe because timerfd_gettime is trusted to only modify `spec`. let ret = unsafe { timerfd_gettime ( self . as_raw_fd ( ) , & mut spec ) } ; if ret < 0 { return errno_result ( ) ; } Ok ( spec . it_value . tv_sec != 0 || spec . it_value . tv_nsec != 0 ) }
Returns `true` if the timer is currently armed.
Returns ` true ` if the timer is currently armed .
&self
&self