pub fn wait(&mut self) -> Result<u64> {
        let mut count = 0u64;

        // Safe because this will only modify |buf| and we check the return value.
        let ret = unsafe {
            libc::read(
                self.as_raw_fd(),
                &mut count as *mut _ as *mut libc::c_void,
                mem::size_of_val(&count),
            )
        };
        if ret < 0 {
            return errno_result();
        }

        // The bytes in the buffer are guaranteed to be in native byte-order so we don't need to
        // use from_le or from_be.
        Ok(count)
    }
/// Waits until the timer expires.
///
/// The return value represents the number of times the timer
/// has expired since the last time `wait` was called.  If the timer has not yet expired once
/// this call will block until it does.
Waits until the timer expires.
The return value represents the number of times the timer
has expired since the last time `wait` was called.  If the timer has not yet expired once
this call will block until it does.
Waits until the timer expires . The return value represents the number of times the timer has expired since the last time ` wait ` was called . If the timer has not yet expired once this call will block until it does .
pub fn wait(&mut self) -> Result<u64> {
        let mut count = 0u64;
        // Safe because this will only modify |buf| and we check the return value.
        let ret = unsafe {
            libc::read(
                self.as_raw_fd(),
                &mut count as *mut _ as *mut libc::c_void,
                mem::size_of_val(&count),
            )
        };
        if ret < 0 {
            return errno_result();
        }
        // The bytes in the buffer are guaranteed to be in native byte-order so we don't need to
        // use from_le or from_be.
        Ok(count)
    }
pub fn wait ( & mut self ) -> Result < u64 > { let mut count = 0u64 ; // Safe because this will only modify |buf| and we check the return value. let ret = unsafe { libc :: read ( self . as_raw_fd ( ) , & mut count as * mut _ as * mut libc :: c_void , mem :: size_of_val ( & count ) , ) } ; if ret < 0 { return errno_result ( ) ; } // The bytes in the buffer are guaranteed to be in native byte-order so we don't need to // use from_le or from_be. Ok ( count ) }
Waits until the timer expires.
Waits until the timer expires .
&mut self
&mut self