pub enum InstallStateError {
LookupFailed {
name: String,
source: Error,
},
AlreadyInstalled {
name: String,
},
AlreadyInstalling {
name: String,
},
CurrentlyUpdating {
name: String,
},
CommandAlreadyExposed {
command: String,
package: String,
},
DeleteFailed {
name: String,
source: Error,
},
CleanupFailed {
path: String,
source: Error,
},
DatabaseOperationFailed {
operation: &'static str,
source: Error,
},
}Expand description
Errors raised while preparing or updating install state.
Variants§
LookupFailed
AlreadyInstalled
AlreadyInstalling
CurrentlyUpdating
CommandAlreadyExposed
DeleteFailed
CleanupFailed
DatabaseOperationFailed
Trait Implementations§
Source§impl Debug for InstallStateError
impl Debug for InstallStateError
Source§impl Display for InstallStateError
impl Display for InstallStateError
Source§impl Error for InstallStateError
impl Error for InstallStateError
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<InstallStateError> for InstallError
impl From<InstallStateError> for InstallError
Source§fn from(value: InstallStateError) -> Self
fn from(value: InstallStateError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InstallStateError
impl RefUnwindSafe for InstallStateError
impl Send for InstallStateError
impl Sync for InstallStateError
impl Unpin for InstallStateError
impl UnwindSafe for InstallStateError
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