[−][src]Struct oceanpkg::drop::kind::Exe
A package that can be executed; e.g. CLI tool or script.
Methods
impl Exe
[src]
pub fn installed<S: AsRef<str>>(
query: &Query<S>,
target: &InstallTarget
) -> Result<Self, ()>
[src]
query: &Query<S>,
target: &InstallTarget
) -> Result<Self, ()>
Returns an executable matching query
, installed for target
.
pub const fn metadata(&self) -> &Metadata
[src]
Returns basic metadata for the drop.
pub fn bin_name(&self) -> &str
[src]
Returns the name of the binary executable.
pub fn bin_path<'t>(
&self,
target: &'t InstallTarget
) -> Result<PathBuf, FindError<'t>>
[src]
&self,
target: &'t InstallTarget
) -> Result<PathBuf, FindError<'t>>
Returns the path of the drop's executable binary, if one exists.
pub fn command<'t>(
&self,
target: &'t InstallTarget
) -> Result<Command, FindError<'t>>
[src]
&self,
target: &'t InstallTarget
) -> Result<Command, FindError<'t>>
Returns a Command
instance suitable for running the drop's executable
binary, if one exists.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Exe
impl Send for Exe
impl Sync for Exe
impl Unpin for Exe
impl UnwindSafe for Exe
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,