pub struct PackageUpgrade {
pub installer: PathBuf,
pub version: String,
pub data_dir: PathBuf,
}Expand description
A package that the user’s password can install.
Fields§
§installer: PathBufThe release’s .deb or .rpm in updates/<version>/ of the data folder;
for going back, GO_BACK_ARG (the helper downloads the package itself).
version: String§data_dir: PathBufThis version’s data folder: where the result is left for srv.
Implementations§
Source§impl PackageUpgrade
impl PackageUpgrade
Sourcepub fn go_back(version: &str, data_dir: &Path) -> PackageUpgrade
pub fn go_back(version: &str, data_dir: &Path) -> PackageUpgrade
Going back to version: the helper fetches and checks the package itself.
fn is_go_back(&self) -> bool
fn deb(&self) -> bool
Sourcefn files(&self) -> (PathBuf, PathBuf, PathBuf)
fn files(&self) -> (PathBuf, PathBuf, PathBuf)
Where the waiter’s output goes, and where the result is left.
Sourcepub fn manual_command(&self) -> String
pub fn manual_command(&self) -> String
The command that installs this file by hand: what the panel offers when no password prompt can be shown.
Trait Implementations§
Source§impl Clone for PackageUpgrade
impl Clone for PackageUpgrade
Source§fn clone(&self) -> PackageUpgrade
fn clone(&self) -> PackageUpgrade
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PackageUpgrade
impl Debug for PackageUpgrade
impl Eq for PackageUpgrade
Source§impl PartialEq for PackageUpgrade
impl PartialEq for PackageUpgrade
impl StructuralPartialEq for PackageUpgrade
Auto Trait Implementations§
impl Freeze for PackageUpgrade
impl RefUnwindSafe for PackageUpgrade
impl Send for PackageUpgrade
impl Sync for PackageUpgrade
impl Unpin for PackageUpgrade
impl UnsafeUnpin for PackageUpgrade
impl UnwindSafe for PackageUpgrade
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.