pub enum LinkScriptType {
PreUnlink,
PostLink,
}
Expand description
The type of link script to run
Variants§
PreUnlink
The pre-unlink script (run before the package is unlinked)
This is stored in the environment as bin/.{name}-pre-unlink.sh
or
Scripts/.{name}-pre-unlink.bat
PostLink
The post-link script (run after the package is linked)
This is stored in the environment as bin/.{name}-post-link.sh
or
Scripts/.{name}-post-link.bat
Implementations§
Source§impl LinkScriptType
impl LinkScriptType
Sourcepub fn get_path(
&self,
package_record: &PackageRecord,
platform: &Platform,
) -> String
pub fn get_path( &self, package_record: &PackageRecord, platform: &Platform, ) -> String
Get the path to the link script for a given package record and platform
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LinkScriptType
impl RefUnwindSafe for LinkScriptType
impl Send for LinkScriptType
impl Sync for LinkScriptType
impl Unpin for LinkScriptType
impl UnwindSafe for LinkScriptType
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