pub enum TldrUpdateError {
Cache(TldrCacheError),
NoUpdater,
InvalidCheckout(PathBuf),
CommandUnavailable {
program: PathBuf,
source: Error,
},
CommandFailed {
command: String,
exit_code: i32,
detail: Option<String>,
},
FileOperation {
action: &'static str,
path: PathBuf,
source: Error,
},
}Expand description
Failure to refresh an installed client or ManT’s private checkout.
Variants§
Trait Implementations§
Source§impl Debug for TldrUpdateError
impl Debug for TldrUpdateError
Source§impl Display for TldrUpdateError
impl Display for TldrUpdateError
Source§impl Error for TldrUpdateError
impl Error for TldrUpdateError
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<TldrCacheError> for TldrUpdateError
impl From<TldrCacheError> for TldrUpdateError
Source§fn from(error: TldrCacheError) -> Self
fn from(error: TldrCacheError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for TldrUpdateError
impl !UnwindSafe for TldrUpdateError
impl Freeze for TldrUpdateError
impl Send for TldrUpdateError
impl Sync for TldrUpdateError
impl Unpin for TldrUpdateError
impl UnsafeUnpin for TldrUpdateError
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