cargo::sources::git::fetch

Type Alias 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)

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: 136 bytes
  • FindExistingReference: 80 bytes
  • RemoteInit: 96 bytes
  • FindExistingRemote: 168 bytes
  • CredentialHelperConfig: 128 bytes
  • Connect: 144 bytes
  • PrepareFetch: 168 bytes
  • Fetch: 136 bytes
  • Other: 56 bytes

Implementations

§

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

Queries

pub fn is_corrupted(&self) -> bool

Return true if repository corruption caused the failure.

Trait Implementations

§

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

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

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

§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

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

§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns 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
§

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

§

fn from(source: Error) -> Error<E>

Converts to this type from the input type.
§

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

§

fn from(source: Error) -> Error<E>

Converts to this type from the input type.
§

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

§

fn from(source: Error) -> Error<E>

Converts to this type from the input type.
§

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

§

fn from(source: Error) -> Error<E>

Converts to this type from the input type.
§

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

§

fn from(source: Error) -> Error<E>

Converts to this type from the input type.
§

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

§

fn from(source: Error) -> Error<E>

Converts to this type from the input type.
§

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

§

fn from(source: Error) -> Error<E>

Converts to this type from the input type.
§

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

§

fn from(source: Error) -> Error<E>

Converts to this type from the input type.
§

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

§

fn is_spurious(&self) -> bool

Return true if retrying might result in a different outcome due to IO working out differently.