pub enum FetchError {
GitUnavailable,
Git {
args: String,
status: Option<i32>,
stderr: String,
},
NoSource(String),
MissingUrl(String),
Io {
context: String,
source: Error,
},
}Expand description
Errors raised while acquiring a dependency.
Variants§
The system git binary is missing or not executable.
Git
git exited non-zero while cloning/checking out.
NoSource(String)
A dependency declared neither a path nor a git source.
MissingUrl(String)
A git dependency is missing its URL.
Io
Cache directory creation/relocation failed.
Trait Implementations§
Source§impl Debug for FetchError
impl Debug for FetchError
Source§impl Display for FetchError
impl Display for FetchError
Source§impl Error for FetchError
impl Error for FetchError
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 FetchError
impl !UnwindSafe for FetchError
impl Freeze for FetchError
impl Send for FetchError
impl Sync for FetchError
impl Unpin for FetchError
impl UnsafeUnpin for FetchError
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