#[non_exhaustive]pub enum ReadCommitError {
Missing(ObjectId),
Kind {
id: ObjectId,
kind: ObjectKind,
},
Parse(CommitError),
Read(ObjectReadError),
}Expand description
Objects::read_commit failed to produce a commit.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Missing(ObjectId)
No store has the object.
Kind
The object exists but is not a commit.
Parse(CommitError)
The commit bytes are malformed.
Read(ObjectReadError)
Reading the object failed.
Trait Implementations§
Source§impl Debug for ReadCommitError
impl Debug for ReadCommitError
Source§impl Display for ReadCommitError
impl Display for ReadCommitError
Source§impl Error for ReadCommitError
impl Error for ReadCommitError
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<CommitError> for ReadCommitError
impl From<CommitError> for ReadCommitError
Source§fn from(source: CommitError) -> Self
fn from(source: CommitError) -> Self
Converts to this type from the input type.
Source§impl From<ObjectReadError> for ReadCommitError
impl From<ObjectReadError> for ReadCommitError
Source§fn from(source: ObjectReadError) -> Self
fn from(source: ObjectReadError) -> Self
Converts to this type from the input type.
Source§impl From<ReadCommitError> for Error
impl From<ReadCommitError> for Error
Source§fn from(error: ReadCommitError) -> Self
fn from(error: ReadCommitError) -> Self
Converts to this type from the input type.
Source§impl From<ReadCommitError> for PathHistoryError
impl From<ReadCommitError> for PathHistoryError
Source§fn from(source: ReadCommitError) -> Self
fn from(source: ReadCommitError) -> Self
Converts to this type from the input type.
Source§impl From<ReadCommitError> for CommitError
impl From<ReadCommitError> for CommitError
Source§fn from(source: ReadCommitError) -> Self
fn from(source: ReadCommitError) -> Self
Converts to this type from the input type.
Source§impl From<ReadCommitError> for AutosquashError
impl From<ReadCommitError> for AutosquashError
Source§fn from(source: ReadCommitError) -> Self
fn from(source: ReadCommitError) -> Self
Converts to this type from the input type.
Source§impl From<ReadCommitError> for RebaseError
impl From<ReadCommitError> for RebaseError
Source§fn from(source: ReadCommitError) -> Self
fn from(source: ReadCommitError) -> Self
Converts to this type from the input type.
Source§impl From<ReadCommitError> for TodoExecutionError
impl From<ReadCommitError> for TodoExecutionError
Source§fn from(source: ReadCommitError) -> Self
fn from(source: ReadCommitError) -> Self
Converts to this type from the input type.
Source§impl From<ReadCommitError> for Error
impl From<ReadCommitError> for Error
Source§fn from(source: ReadCommitError) -> Self
fn from(source: ReadCommitError) -> Self
Converts to this type from the input type.
Source§impl From<ReadCommitError> for ResetError
impl From<ReadCommitError> for ResetError
Source§fn from(source: ReadCommitError) -> Self
fn from(source: ReadCommitError) -> Self
Converts to this type from the input type.
Source§impl From<ReadCommitError> for Error
impl From<ReadCommitError> for Error
Source§fn from(source: ReadCommitError) -> Self
fn from(source: ReadCommitError) -> Self
Converts to this type from the input type.
Source§impl From<ReadCommitError> for LoadError
impl From<ReadCommitError> for LoadError
Source§fn from(source: ReadCommitError) -> Self
fn from(source: ReadCommitError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ReadCommitError
impl !UnwindSafe for ReadCommitError
impl Freeze for ReadCommitError
impl Send for ReadCommitError
impl Sync for ReadCommitError
impl Unpin for ReadCommitError
impl UnsafeUnpin for ReadCommitError
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