gix_transport

Trait IsSpuriousError

Source
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.