pub struct SystemInstaller {
pub kind: Kind,
pub program: PathBuf,
}Expand description
Homebrew or winget on this machine.
Fields§
§kind: Kind§program: PathBufImplementations§
Source§impl SystemInstaller
impl SystemInstaller
Sourcepub fn detect() -> Option<Self>
pub fn detect() -> Option<Self>
winget on Windows; elsewhere brew on PATH or in its usual places (a GUI app
on macOS often starts without /opt/homebrew/bin on PATH).
pub fn name(&self) -> &'static str
Sourcepub fn layer(&self) -> Layer
pub fn layer(&self) -> Layer
What sandboxed runs need to find what it installed: Homebrew’s bin on PATH.
Trait Implementations§
Source§impl Clone for SystemInstaller
impl Clone for SystemInstaller
Source§impl Debug for SystemInstaller
impl Debug for SystemInstaller
impl Eq for SystemInstaller
Source§impl PartialEq for SystemInstaller
impl PartialEq for SystemInstaller
impl StructuralPartialEq for SystemInstaller
Auto Trait Implementations§
impl Forget for SystemInstaller
impl Freeze for SystemInstaller
impl Move for SystemInstaller
impl RefUnwindSafe for SystemInstaller
impl Send for SystemInstaller
impl Sync for SystemInstaller
impl Unpin for SystemInstaller
impl UnsafeUnpin for SystemInstaller
impl UnwindSafe for SystemInstaller
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