pub trait IsSpuriousError: Error {
    // Provided method
    fn is_spurious(&self) -> bool { ... }
}
Expand description

An error which can tell whether it’s worth retrying to maybe succeed next time.

Provided Methods§

source

fn is_spurious(&self) -> bool

Return true if retrying might result in a different outcome due to IO working out differently.

Implementations on Foreign Types§

source§

impl IsSpuriousError for Infallible

source§

impl IsSpuriousError for Error

Implementors§

source§

impl IsSpuriousError for gix_transport::client::connect::Error

Available on crate features blocking-client or async-client only.
source§

impl IsSpuriousError for gix_transport::client::Error

source§

impl IsSpuriousError for gix_transport::client::git::connect::Error

Available on crate feature blocking-client and (crate features blocking-client or async-client) only.
source§

impl IsSpuriousError for gix_transport::client::http::curl::Error

Available on crate features http-client-curl and http-client and blocking-client only.
source§

impl IsSpuriousError for gix_transport::client::http::Error

Available on crate features http-client and blocking-client only.
source§

impl IsSpuriousError for gix_transport::client::ssh::Error

Available on crate feature blocking-client only.