Type Alias cargo::sources::git::fetch::Error

source ·
pub type Error = Error<Error>;

Aliased Type§

enum Error {
    Open(Error),
    FindExistingReference(Error),
    RemoteInit(Error),
    FindExistingRemote(Error),
    CredentialHelperConfig(Error),
    Connect(Error),
    PrepareFetch(Error),
    Fetch(Error),
    Other(Error),
}

Variants§

§

Open(Error)

§

FindExistingReference(Error)

§

RemoteInit(Error)

§

FindExistingRemote(Error)

§

CredentialHelperConfig(Error)

§

Connect(Error)

§

PrepareFetch(Error)

§

Fetch(Error)

§

Other(Error)

Trait Implementations§

§

impl<E> Error for Error<E>where E: Error + Send + Sync + 'static, Error<E>: Debug + Display,

§

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

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 168 bytes

Size for each variant:

  • Open: 128 bytes
  • FindExistingReference: 80 bytes
  • RemoteInit: 72 bytes
  • FindExistingRemote: 160 bytes
  • CredentialHelperConfig: 80 bytes
  • Connect: 144 bytes
  • PrepareFetch: 168 bytes
  • Fetch: 128 bytes
  • Other: 56 bytes