fn time_to_notarize(
        &self,
        pool: &PoolReader<'_>,
        height: Height,
        rank: Rank,
    ) -> Option<std::time::Duration> {
        let adjusted_notary_delay = get_adjusted_notary_delay(
            self.membership.as_ref(),
            pool,
            self.state_manager.as_ref(),
            &self.log,
            height,
            rank,
        )?;
        if let Some(start_time) = pool.get_round_start_time(height) {
            let now = self.time_source.get_relative_time();
            if now >= start_time + adjusted_notary_delay {
                return Some(now - start_time);
            }
        }
        None
    }
/// Return the time since round start, if it is greater than required
/// notarization delay for the given block rank, or None otherwise.
Return the time since round start, if it is greater than required
notarization delay for the given block rank, or None otherwise.
Return the time since round start if it is greater than required notarization delay for the given block rank or None otherwise .
fn time_to_notarize(
        &self,
        pool: &PoolReader<'_>,
        height: Height,
        rank: Rank,
    ) -> Option<std::time::Duration> {
        let adjusted_notary_delay = get_adjusted_notary_delay(
            self.membership.as_ref(),
            pool,
            self.state_manager.as_ref(),
            &self.log,
            height,
            rank,
        )?;
        if let Some(start_time) = pool.get_round_start_time(height) {
            let now = self.time_source.get_relative_time();
            if now >= start_time + adjusted_notary_delay {
                return Some(now - start_time);
            }
        }
        None
    }
fn time_to_notarize ( & self , pool : & PoolReader < ' _ > , height : Height , rank : Rank , ) -> Option < std :: time :: Duration > { let adjusted_notary_delay = get_adjusted_notary_delay ( self . membership . as_ref ( ) , pool , self . state_manager . as_ref ( ) , & self . log , height , rank , ) ? ; if let Some ( start_time ) = pool . get_round_start_time ( height ) { let now = self . time_source . get_relative_time ( ) ; if now >= start_time + adjusted_notary_delay { return Some ( now - start_time ) ; } } None }
Return the time since round start, if it is greater than required
notarization delay for the given block rank, or None otherwise.
Return the time since round start if it is greater than required notarization delay for the given block rank or None otherwise .
&self
pool
&PoolReader<'_>
height
Height
rank
Rank
&self
pool
&PoolReader<'_>
height
Height
rank
Rank