pub enum Problem {
UnknownBinary,
NotWritable {
dir: PathBuf,
error: Error,
},
ToolMissing(&'static str),
Download {
url: String,
detail: String,
},
Extract(String),
Unusable(String),
Replace {
exe: PathBuf,
error: Error,
},
}Expand description
Why an update failed. The messages are Czech and say what to do.
Variants§
UnknownBinary
The location of this binary is unknown.
NotWritable
The directory of the binary cannot be written to.
ToolMissing(&'static str)
curl or tar is not installed.
Download
The download failed.
Extract(String)
The archive could not be unpacked.
Unusable(String)
The downloaded binary does not run.
Replace
The binary could not be replaced.
Implementations§
Trait Implementations§
Source§impl Error for Problem
impl Error for Problem
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()
Auto Trait Implementations§
impl !RefUnwindSafe for Problem
impl !UnwindSafe for Problem
impl Freeze for Problem
impl Send for Problem
impl Sync for Problem
impl Unpin for Problem
impl UnsafeUnpin for Problem
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