pub enum SyncError {
Encryption(String),
KeyStorage(String),
Serialization(String),
Compression(String),
Git(String),
RefCasMismatch(String),
Io(Error),
}Expand description
Errors produced by the git-ref sync subsystem.
A single error type spans the encryption, key storage, blob pipeline, and
git plumbing layers so callers can propagate failures with a single ?.
Variants§
Encryption(String)
Encryption or decryption failed.
KeyStorage(String)
Storing, loading, or deleting the encryption key failed.
Serialization(String)
Serializing or deserializing a session record failed.
Compression(String)
Gzip compression or decompression failed.
Git(String)
A shelled-out git command failed.
RefCasMismatch(String)
A checked (compare-and-swap) ref update was rejected because the ref did not hold the expected old value. A caller may re-read and retry.
Io(Error)
An underlying I/O operation failed.
Trait Implementations§
Source§impl Error for SyncError
impl Error for SyncError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for SyncError
impl !UnwindSafe for SyncError
impl Freeze for SyncError
impl Send for SyncError
impl Sync for SyncError
impl Unpin for SyncError
impl UnsafeUnpin for SyncError
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