pub enum SyncError {
InvalidManifest(String),
MissingLock,
GitUnavailable,
Git {
args: String,
status: Option<i32>,
stderr: String,
},
UnknownReference(String),
NetworkFailure(String),
DetachedBranch(String),
Io {
context: String,
source: Error,
},
}Expand description
Errors that abort an update before producing a partial result.
Variants§
InvalidManifest(String)
The .sdkt.toml manifest is invalid.
MissingLock
No sdkt.lock exists (run sdkt package fetch first).
The system git executable is required but unavailable.
Git
A git operation exited non-zero.
UnknownReference(String)
A git remote reference (tag/branch) does not exist.
NetworkFailure(String)
A network failure while contacting a git remote.
DetachedBranch(String)
A branch dependency’s local cache checkout is in a detached HEAD
(not on the declared branch).
Io
A general I/O or lock-write failure.
Trait Implementations§
Source§impl Error for SyncError
impl Error for SyncError
1.30.0 · 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<FetchError> for SyncError
Convert a FetchError (from GitFetcher) into a SyncError.
impl From<FetchError> for SyncError
Convert a FetchError (from GitFetcher) into a SyncError.
Source§fn from(e: FetchError) -> Self
fn from(e: FetchError) -> Self
Converts to this type from the input type.
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