#[non_exhaustive]pub enum BundleError {
Show 14 variants
BadSignature,
UnsupportedVersion,
UnsupportedCapability {
capability: String,
},
MalformedLine {
line: String,
},
ObjectFormatMismatch {
bundle_name: &'static str,
repo_name: &'static str,
},
MissingPrerequisites {
commits: Vec<(ObjectId, Option<String>)>,
},
PrerequisitesNotConnected,
EmptyRefs,
MissingPack,
Io {
detail: String,
},
ObjectNotFound {
name: String,
},
InvalidFilter(ObjectFilterError),
NoRevisions,
Cancelled,
}Expand description
Bundle read/write/verify failures.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
BadSignature
The file does not begin with a v2/v3 bundle signature.
UnsupportedVersion
Only versions 2 and 3 are supported.
UnsupportedCapability
A v3 @ capability was not recognized.
MalformedLine
A header line could not be parsed.
ObjectFormatMismatch
Header object format disagrees with the repository.
Fields
MissingPrerequisites
One or more prerequisite commits are absent from the ODB.
Fields
PrerequisitesNotConnected
Prerequisite objects exist locally but are not ref-reachable and their exclusive history is missing commits, trees, or blobs.
EmptyRefs
No ref tips were listed in the header.
MissingPack
The pack stream did not start where expected.
Io
Underlying I/O failure.
ObjectNotFound
A named object id is missing from the ODB.
InvalidFilter(ObjectFilterError)
A v3 @filter= capability is not a filter Git accepts.
NoRevisions
Bundle creation was given no revision to include and was not asked for every ref.
Cancelled
The operation was cancelled before the bundle finished unpacking.
Implementations§
Source§impl BundleError
impl BundleError
Sourcepub fn is_cancelled(&self) -> bool
pub fn is_cancelled(&self) -> bool
Whether the bundle operation was cancelled.
Trait Implementations§
Source§impl Clone for BundleError
impl Clone for BundleError
Source§impl Debug for BundleError
impl Debug for BundleError
Source§impl Display for BundleError
impl Display for BundleError
impl Eq for BundleError
Source§impl Error for BundleError
impl Error for BundleError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<BundleError> for Error
impl From<BundleError> for Error
Source§fn from(err: BundleError) -> Self
fn from(err: BundleError) -> Self
Source§impl From<Error> for BundleError
impl From<Error> for BundleError
Source§impl From<ObjectFilterError> for BundleError
impl From<ObjectFilterError> for BundleError
Source§fn from(source: ObjectFilterError) -> Self
fn from(source: ObjectFilterError) -> Self
Source§impl PartialEq for BundleError
impl PartialEq for BundleError
impl StructuralPartialEq for BundleError
Auto Trait Implementations§
impl Forget for BundleError
impl Freeze for BundleError
impl RefUnwindSafe for BundleError
impl Send for BundleError
impl Sync for BundleError
impl Unpin for BundleError
impl UnsafeUnpin for BundleError
impl UnwindSafe for BundleError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.