pub enum OpLogReadError {
CatFile {
oid: String,
stderr: String,
exit_code: Option<i32>,
},
Deserialize {
oid: String,
source: Error,
},
Io(Error),
RefError(RefError),
NoHead {
workspace_id: WorkspaceId,
},
}Expand description
Errors that can occur during an op log read.
Variants§
CatFile
git cat-file -p <oid> failed or returned unexpected output.
Fields
Deserialize
The blob content could not be deserialized as an Operation.
Fields
Io(Error)
I/O error (e.g. spawning git).
RefError(RefError)
A ref operation failed.
NoHead
The head ref does not exist (workspace has no op log yet).
Fields
§
workspace_id: WorkspaceIdThe workspace whose head ref is missing.
Trait Implementations§
Source§impl Debug for OpLogReadError
impl Debug for OpLogReadError
Source§impl Display for OpLogReadError
impl Display for OpLogReadError
Source§impl Error for OpLogReadError
impl Error for OpLogReadError
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 OpLogReadError
impl From<Error> for OpLogReadError
Source§impl From<OpLogReadError> for CheckpointError
impl From<OpLogReadError> for CheckpointError
Source§fn from(e: OpLogReadError) -> Self
fn from(e: OpLogReadError) -> Self
Converts to this type from the input type.
Source§impl From<OpLogReadError> for ViewError
impl From<OpLogReadError> for ViewError
Source§fn from(e: OpLogReadError) -> Self
fn from(e: OpLogReadError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OpLogReadError
impl !RefUnwindSafe for OpLogReadError
impl Send for OpLogReadError
impl Sync for OpLogReadError
impl Unpin for OpLogReadError
impl UnsafeUnpin for OpLogReadError
impl !UnwindSafe for OpLogReadError
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