Returns the check timeout.
(&self)
| 627 | |
| 628 | /// Returns the check timeout. |
| 629 | pub const fn timeout(&self) -> Duration { |
| 630 | match self { |
| 631 | Self::ChainId { timeout, .. } |
| 632 | | Self::HeadProgress { timeout, .. } |
| 633 | | Self::HeadsConverge { timeout, .. } |
| 634 | | Self::SafeHeadProgress { timeout, .. } |
| 635 | | Self::HeadFresh { timeout, .. } |
| 636 | | Self::HeadsHealthy { timeout, .. } => timeout.0, |
| 637 | } |
| 638 | } |
| 639 | |
| 640 | /// Returns the optional start condition. |
| 641 | pub const fn start(&self) -> Option<&CheckStart> { |
no outgoing calls