pub enum CargoFreshError {
CargoListFailed {
source: Error,
},
}Expand description
用户运行 cargo-fresh 时能识别出的几类典型失败。
目前只覆盖会真正冒泡到 main 的路径——fetch_latest_versions 内部把
网络错误全部吞成空候选,所以 registry 相关的失败不会以错误形式出现。
网络层提示由 hint_for 中对 reqwest::Error 的直接匹配兜底,未来若
决定把 registry 错误外抛,可在此处增补变体。
Variants§
Trait Implementations§
Source§impl Debug for CargoFreshError
impl Debug for CargoFreshError
Source§impl Display for CargoFreshError
impl Display for CargoFreshError
Source§impl Error for CargoFreshError
impl Error for CargoFreshError
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 Freeze for CargoFreshError
impl RefUnwindSafe for CargoFreshError
impl Send for CargoFreshError
impl Sync for CargoFreshError
impl Unpin for CargoFreshError
impl UnsafeUnpin for CargoFreshError
impl UnwindSafe for CargoFreshError
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