pub enum FetchError {
Parse {
line: String,
},
Sha(ShaError),
Ref(RefNameError),
Store(ObjectStoreError),
Io(Error),
Git(GitError),
Join(JoinError),
Packchain(PackchainError),
}Expand description
Errors surfaced by the fetch path.
Variants§
Parse
fetch <sha> <ref> line could not be parsed.
Sha(ShaError)
SHA hex was malformed.
Ref(RefNameError)
Ref name was malformed.
Store(ObjectStoreError)
Object-store call failed (bundle missing, network, auth, …).
Io(Error)
Local I/O failure (tempdir creation, etc.).
Git(GitError)
git bundle unbundle failed.
Join(JoinError)
A spawned fetch task panicked or was cancelled.
Packchain(PackchainError)
Packchain-engine-specific failure surfaced by
[crate::packchain::fetch::fetch_batch]. Wrapped here so the
protocol REPL can render fetch failures uniformly regardless
of which engine produced them.
Trait Implementations§
Source§impl Debug for FetchError
impl Debug for FetchError
Source§impl Display for FetchError
impl Display for FetchError
Source§impl Error for FetchError
impl Error for FetchError
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<Error> for FetchError
impl From<Error> for FetchError
Source§impl From<FetchError> for ProtocolError
impl From<FetchError> for ProtocolError
Source§fn from(source: FetchError) -> Self
fn from(source: FetchError) -> Self
Converts to this type from the input type.
Source§impl From<GitError> for FetchError
impl From<GitError> for FetchError
Source§impl From<JoinError> for FetchError
impl From<JoinError> for FetchError
Source§impl From<ObjectStoreError> for FetchError
impl From<ObjectStoreError> for FetchError
Source§fn from(source: ObjectStoreError) -> Self
fn from(source: ObjectStoreError) -> Self
Converts to this type from the input type.
Source§impl From<PackchainError> for FetchError
impl From<PackchainError> for FetchError
Source§fn from(source: PackchainError) -> Self
fn from(source: PackchainError) -> Self
Converts to this type from the input type.
Source§impl From<RefNameError> for FetchError
impl From<RefNameError> for FetchError
Source§fn from(source: RefNameError) -> Self
fn from(source: RefNameError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FetchError
impl !RefUnwindSafe for FetchError
impl Send for FetchError
impl Sync for FetchError
impl Unpin for FetchError
impl UnsafeUnpin for FetchError
impl !UnwindSafe for FetchError
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> ErrorExt for T
impl<T> ErrorExt for T
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 moreCreates a shared type from an unshared type.
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.