Skip to main content

UpstreamError

Enum UpstreamError 

Source
pub enum UpstreamError {
Show 18 variants HomeDirectory, UnknownDomain(EntryAtom), MissingLock(EntryAtom), StaleLock(EntryAtom), MissingCache(String), CreateCache { path: PathBuf, source: Error, }, StartGit(Error), Git { status: Option<i32>, stderr: String, }, NonUtf8GitObject { path: String, source: FromUtf8Error, }, GitTreePath(PathBuf), UnsupportedLakePath(String), Config(ConfigError), Entry(EntryParseError), EntryAddress(EntryAddressError), ArtifactPath(EntryArtifactPathError), GeneratedLink(GeneratedLinkError), Mist(Box<MistError>), Lake(EntryDirectoryError),
}
Expand description

Error raised while resolving or crystallizing upstream lakes.

Variants§

§

HomeDirectory

The user home directory could not be resolved.

§

UnknownDomain(EntryAtom)

A configured glacier domain does not exist.

§

MissingLock(EntryAtom)

A locked crystallization requested a missing lock.

§

StaleLock(EntryAtom)

A locked crystallization found stale lock state.

§

MissingCache(String)

The upstream cache mirror is missing.

§

CreateCache

A cache directory could not be created.

Fields

§path: PathBuf

Cache directory path.

§source: Error

Underlying I/O error.

§

StartGit(Error)

Git could not be started.

§

Git

Git returned an error status.

Fields

§status: Option<i32>

Git process status code.

§stderr: String

Git stderr.

§

NonUtf8GitObject

A Git object was not UTF-8 where text was required.

Fields

§path: String

Git tree path.

§source: FromUtf8Error

UTF-8 conversion error.

§

GitTreePath(PathBuf)

A Git-tree-relative path was invalid.

§

UnsupportedLakePath(String)

An upstream lake contained an unsupported file.

§

Config(ConfigError)

Config parsing failed.

§

Entry(EntryParseError)

Entry parsing failed.

§

EntryAddress(EntryAddressError)

Entry address parsing failed.

§

ArtifactPath(EntryArtifactPathError)

Artifact path parsing failed.

Generated-link footer handling failed.

§

Mist(Box<MistError>)

Mist selection failed.

§

Lake(EntryDirectoryError)

Lake writing failed.

Trait Implementations§

Source§

impl Debug for UpstreamError

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Display for UpstreamError

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Error for UpstreamError

Source§

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

impl From<ConfigError> for UpstreamError

Source§

fn from(source: ConfigError) -> Self

Converts to this type from the input type.
Source§

impl From<EntryAddressError> for UpstreamError

Source§

fn from(source: EntryAddressError) -> Self

Converts to this type from the input type.
Source§

impl From<EntryArtifactPathError> for UpstreamError

Source§

fn from(source: EntryArtifactPathError) -> Self

Converts to this type from the input type.
Source§

impl From<EntryDirectoryError> for UpstreamError

Source§

fn from(source: EntryDirectoryError) -> Self

Converts to this type from the input type.
Source§

impl From<EntryParseError> for UpstreamError

Source§

fn from(source: EntryParseError) -> Self

Converts to this type from the input type.
Source§

impl From<GeneratedLinkError> for UpstreamError

Source§

fn from(source: GeneratedLinkError) -> Self

Converts to this type from the input type.
Source§

impl From<MistError> for UpstreamError

Source§

fn from(source: MistError) -> Self

Converts to this type from the input type.
Source§

impl From<UpstreamError> for CommandError

Source§

fn from(source: UpstreamError) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToCompactString for T
where T: Display,

Source§

impl<T> ToLine for T
where T: Display,

Source§

fn to_line(&self) -> Line<'_>

Converts the value to a Line.
Source§

impl<T> ToSmolStr for T
where T: Display + ?Sized,

Source§

impl<T> ToSpan for T
where T: Display,

Source§

fn to_span(&self) -> Span<'_>

Converts the value to a Span.
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T> ToText for T
where T: Display,

Source§

fn to_text(&self) -> Text<'_>

Converts the value to a Text.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more