pub struct PullOps { /* private fields */ }Implementations§
Source§impl PullOps
impl PullOps
Sourcepub fn user(&self) -> Result<Operation, GuixError>
pub fn user(&self) -> Result<Operation, GuixError>
guix pull via a guix repl -t machine subprocess; structured
fd-3 events instead of stderr scraping. See crate::repl::op.
Sourcepub fn as_root(&self, opts: SystemPullOptions) -> Result<Operation, GuixError>
pub fn as_root(&self, opts: SystemPullOptions) -> Result<Operation, GuixError>
guix pull for the root catalog. Under Privilege::Pkexec
(default) runs auth-agent pre-flight then pkexec; under
Privilege::AlreadyRoot spawns guix directly (installer path,
stderr-parsed). See PullOps::user for the per-user REPL path.
Sourcepub fn user_path() -> PathBuf
pub fn user_path() -> PathBuf
mtime of this symlink is the canonical “last user-pull” signal —
~/.config/guix/current is a user-owned symlink and can drift on
foreign distros. Falls back to "root" if $USER is unset.
pub fn root_path() -> PathBuf
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for PullOps
impl !UnwindSafe for PullOps
impl Freeze for PullOps
impl Send for PullOps
impl Sync for PullOps
impl Unpin for PullOps
impl UnsafeUnpin for PullOps
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