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()
Auto Trait Implementations§
impl<E = Infallible> !RefUnwindSafe for Error<E>
impl<E> Send for Error<E>
impl<E> Sync for Error<E>
impl<E> Unpin for Error<E>where E: Unpin,
impl<E = Infallible> !UnwindSafe for Error<E>
Blanket Implementations§
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere T: Display,
§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a [
CompactString
]. Read more