pub enum VcsError {
HashMismatch {
expected: SnapshotId,
actual: SnapshotId,
},
UncommittedChanges {
count: usize,
},
InvalidSnapshotId(String),
InvalidBranchName(String),
Storage(String),
Json(Error),
Io(Error),
Internal(String),
}Variants§
HashMismatch
The archive stored at the remote has a different hash than expected. Indicates corruption or tampering.
UncommittedChanges
checkout was blocked because there are uncommitted changes.
Pass force: true to discard them.
InvalidSnapshotId(String)
A SnapshotId string failed validation.
InvalidBranchName(String)
A branch name failed validation (must match ^[a-zA-Z0-9_-]{1,64}$).
Storage(String)
An underlying storage operation failed.
Json(Error)
JSON serialization or deserialization failed.
Io(Error)
An I/O operation failed (file system).
Internal(String)
An unexpected internal error.
Trait Implementations§
Source§impl Error for VcsError
impl Error for VcsError
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<RuntimeError> for VcsError
impl From<RuntimeError> for VcsError
Source§fn from(e: RuntimeError) -> Self
fn from(e: RuntimeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for VcsError
impl !RefUnwindSafe for VcsError
impl Send for VcsError
impl Sync for VcsError
impl Unpin for VcsError
impl UnsafeUnpin for VcsError
impl !UnwindSafe for VcsError
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