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.
StartGit(Error)
Git could not be started.
Git
Git returned an error status.
NonUtf8GitObject
A Git object was not UTF-8 where text was required.
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.
GeneratedLink(GeneratedLinkError)
Generated-link footer handling failed.
Mist(Box<MistError>)
Mist selection failed.
Lake(EntryDirectoryError)
Lake writing failed.
Trait Implementations§
Source§impl Debug for UpstreamError
impl Debug for UpstreamError
Source§impl Display for UpstreamError
impl Display for UpstreamError
Source§impl Error for UpstreamError
impl Error for UpstreamError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
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
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<ConfigError> for UpstreamError
impl From<ConfigError> for UpstreamError
Source§fn from(source: ConfigError) -> Self
fn from(source: ConfigError) -> Self
Converts to this type from the input type.
Source§impl From<EntryAddressError> for UpstreamError
impl From<EntryAddressError> for UpstreamError
Source§fn from(source: EntryAddressError) -> Self
fn from(source: EntryAddressError) -> Self
Converts to this type from the input type.
Source§impl From<EntryArtifactPathError> for UpstreamError
impl From<EntryArtifactPathError> for UpstreamError
Source§fn from(source: EntryArtifactPathError) -> Self
fn from(source: EntryArtifactPathError) -> Self
Converts to this type from the input type.
Source§impl From<EntryDirectoryError> for UpstreamError
impl From<EntryDirectoryError> for UpstreamError
Source§fn from(source: EntryDirectoryError) -> Self
fn from(source: EntryDirectoryError) -> Self
Converts to this type from the input type.
Source§impl From<EntryParseError> for UpstreamError
impl From<EntryParseError> for UpstreamError
Source§fn from(source: EntryParseError) -> Self
fn from(source: EntryParseError) -> Self
Converts to this type from the input type.
Source§impl From<GeneratedLinkError> for UpstreamError
impl From<GeneratedLinkError> for UpstreamError
Source§fn from(source: GeneratedLinkError) -> Self
fn from(source: GeneratedLinkError) -> Self
Converts to this type from the input type.
Source§impl From<MistError> for UpstreamError
impl From<MistError> for UpstreamError
Source§impl From<UpstreamError> for CommandError
impl From<UpstreamError> for CommandError
Source§fn from(source: UpstreamError) -> Self
fn from(source: UpstreamError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for UpstreamError
impl !UnwindSafe for UpstreamError
impl Freeze for UpstreamError
impl Send for UpstreamError
impl Sync for UpstreamError
impl Unpin for UpstreamError
impl UnsafeUnpin for UpstreamError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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 moreSource§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more