pub fn event_handler(&mut self) -> Result<(), Error> {
        match self.timer_fd.read() {
            0 => Err(Error::SpuriousRateLimiterEvent(
                "Rate limiter event handler called without a present timer",
            )),
            _ => {
                self.timer_active = false;
                Ok(())
            }
        }
    }
/// This function needs to be called every time there is an event on the
/// FD provided by this object's `AsRawFd` trait implementation.
///
/// # Errors
///
/// If the rate limiter is disabled or is not blocked, an error is returned.
This function needs to be called every time there is an event on the
FD provided by this object's `AsRawFd` trait implementation.
This function needs to be called every time there is an event on the FD provided by this object ' s ` AsRawFd ` trait implementation .
pub fn event_handler(&mut self) -> Result<(), Error> {
        match self.timer_fd.read() {
            0 => Err(Error::SpuriousRateLimiterEvent(
                "Rate limiter event handler called without a present timer",
            )),
            _ => {
                self.timer_active = false;
                Ok(())
            }
        }
    }
pub fn event_handler ( & mut self ) -> Result < ( ) , Error > { match self . timer_fd . read ( ) { 0 => Err ( Error :: SpuriousRateLimiterEvent ( " " , ) ) , _ => { self . timer_active = false ; Ok ( ( ) ) } } }
This function needs to be called every time there is an event on the
FD provided by this object's `AsRawFd` trait implementation.
This function needs to be called every time there is an event on the FD provided by this object ' s ` AsRawFd ` trait implementation .
&mut self
&mut self
errors
If the rate limiter is disabled or is not blocked, an error is returned.
If the rate limiter is disabled or is not blocked an error is returned .