pub enum Error<E: Error + Send + Sync + 'static = Infallible> {
Open(Error),
FindExistingReference(Error),
RemoteInit(Error),
FindExistingRemote(Error),
CredentialHelperConfig(Error),
Connect(Error),
PrepareFetch(Error),
Fetch(Error),
Other(E),
}Expand description
An error which combines all possible errors when opening a repository, finding remotes and using them to fetch.
It can be used to detect if the repository is likely be corrupted in some way, or if the fetch failed spuriously and thus can be retried.
Variants§
Open(Error)
FindExistingReference(Error)
RemoteInit(Error)
FindExistingRemote(Error)
CredentialHelperConfig(Error)
Connect(Error)
Available on crate features
blocking-network-client or async-network-client only.PrepareFetch(Error)
Available on crate features
blocking-network-client or async-network-client only.Fetch(Error)
Available on crate features
blocking-network-client or async-network-client only.Other(E)
Implementations§
Trait Implementations§
source§impl<E> Error for Error<E>where
E: Error + Send + Sync + 'static,
Self: Debug + Display,
impl<E> Error for Error<E>where E: Error + Send + Sync + 'static, Self: Debug + Display,
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()