trust_dns_proto::xfer::retry_dns_handle

Trait RetryableError

Source
pub trait RetryableError {
    // Required methods
    fn should_retry(&self) -> bool;
    fn attempted(&self) -> bool;
}
Expand description

What errors should be retried

Required Methods§

Source

fn should_retry(&self) -> bool

Whether the query should be retried after this error

Source

fn attempted(&self) -> bool

Whether this error should count as an attempt

Implementors§