pub struct Installer<'a> {
pub source: &'a dyn ReleaseSource,
pub target: Option<Target>,
pub dir: PathBuf,
pub go: Option<PathBuf>,
pub go_install: &'a dyn Fn(&Path, &Path) -> Result<PathBuf>,
}Expand description
What an install needs.
Fields§
§source: &'a dyn ReleaseSourceWhere the release comes from.
target: Option<Target>This OS and CPU; None when Ghola publishes no archive for it.
dir: PathBufWhere the binary goes.
go: Option<PathBuf>go on PATH, for building Ghola when no archive fits.
go_install: &'a dyn Fn(&Path, &Path) -> Result<PathBuf>Runs go install into a folder (ghola_install::go_install).
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Installer<'a>
impl<'a> !Send for Installer<'a>
impl<'a> !Sync for Installer<'a>
impl<'a> !UnwindSafe for Installer<'a>
impl<'a> Forget for Installer<'a>
impl<'a> Freeze for Installer<'a>
impl<'a> Unpin for Installer<'a>
impl<'a> UnsafeUnpin for Installer<'a>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more