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§
sourcefn is_spurious(&self) -> bool
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§
impl IsSpuriousError for Infallible
source§impl IsSpuriousError for Error
impl IsSpuriousError for Error
fn is_spurious(&self) -> bool
Implementors§
impl IsSpuriousError for gix_transport::client::connect::Error
Available on crate features
blocking-client
or async-client
only.impl IsSpuriousError for gix_transport::client::Error
impl IsSpuriousError for gix_transport::client::git::connect::Error
Available on crate feature
blocking-client
and (crate features blocking-client
or async-client
) only.impl IsSpuriousError for gix_transport::client::http::curl::Error
Available on crate features
http-client-curl
and http-client
and blocking-client
only.impl IsSpuriousError for gix_transport::client::http::Error
Available on crate features
http-client
and blocking-client
only.impl IsSpuriousError for gix_transport::client::ssh::Error
Available on crate feature
blocking-client
only.