#[non_exhaustive]pub enum SyncError {
Show 21 variants
OpenRepo(PathBuf, Error),
Fetch(Error),
NoLocalRef(String),
NoRemoteRef(String),
MergeBase(Error),
MissingFile(String),
NotABlob(&'static str),
WriteBlob(Error),
BuildTree(Error),
Commit(Error),
NonFastForward,
Push(Error),
TooManyRetries(usize),
IdCollision(BeadId, BeadId),
NoCommonAncestor,
Wire(WireError),
MergeConflict {
errors: Vec<CoreError>,
},
CollisionResolution(CoreError),
PushRejected(PushRejected),
InitFailed(Error),
Git(Error),
}Expand description
Errors that can occur during git sync operations.
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.
OpenRepo(PathBuf, Error)
Fetch(Error)
NoLocalRef(String)
NoRemoteRef(String)
MergeBase(Error)
MissingFile(String)
NotABlob(&'static str)
WriteBlob(Error)
BuildTree(Error)
Commit(Error)
NonFastForward
Push(Error)
TooManyRetries(usize)
IdCollision(BeadId, BeadId)
NoCommonAncestor
Wire(WireError)
MergeConflict
CollisionResolution(CoreError)
PushRejected(PushRejected)
InitFailed(Error)
Git(Error)
Implementations§
Source§impl SyncError
impl SyncError
Sourcepub fn transience(&self) -> Transience
pub fn transience(&self) -> Transience
Whether retrying this sync may succeed.
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()
Source§impl From<PushRejected> for SyncError
impl From<PushRejected> for SyncError
Source§fn from(source: PushRejected) -> Self
fn from(source: PushRejected) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SyncError
impl !RefUnwindSafe for SyncError
impl Send for SyncError
impl Sync for SyncError
impl Unpin for SyncError
impl !UnwindSafe 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