pub fn check(&self) -> std::result::Result<(), DeadlineError> {
        fail_point!("deadline_check_fail", |_| Err(DeadlineError));

        let now = Instant::now_coarse();
        if self.deadline <= now {
            return Err(DeadlineError);
        }
        Ok(())
    }
/// Returns error if the deadline is exceeded.
Returns error if the deadline is exceeded.
Returns error if the deadline is exceeded .
pub fn check(&self) -> std::result::Result<(), DeadlineError> {
        fail_point!("deadline_check_fail", |_| Err(DeadlineError));
        let now = Instant::now_coarse();
        if self.deadline <= now {
            return Err(DeadlineError);
        }
        Ok(())
    }
pub fn check ( & self ) -> std :: result :: Result < ( ) , DeadlineError > { fail_point ! ( " " Err ( DeadlineError ) ) ; let now = Instant :: now_coarse ( ) ; if self . deadline <= now { return Err ( DeadlineError ) ; } Ok ( ( ) ) }
Returns error if the deadline is exceeded.
Returns error if the deadline is exceeded .
&self