Struct ReplacedPackage
pub struct ReplacedPackage {
pub previous_version: String,
pub leftover: Option<(PathBuf, String)>,
}Expand description
What PluginHost::update_admitted replaced.
Fields§
§previous_version: StringThe version of the package that was replaced.
leftover: Option<(PathBuf, String)>Set when the replaced generation could not be deleted afterwards: where it was left, and why. It stays in its hidden transaction, which discovery ignores, marked for deletion, so recovery only ever deletes it. If even that marking failed, it is still a claimed generation, which recovery deletes while the package is installed but would put back once the package is removed, so it is best deleted by hand.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReplacedPackage
impl RefUnwindSafe for ReplacedPackage
impl Send for ReplacedPackage
impl Sync for ReplacedPackage
impl Unpin for ReplacedPackage
impl UnsafeUnpin for ReplacedPackage
impl UnwindSafe for ReplacedPackage
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