[][src]Struct oceanpkg::drop::kind::Exe

pub struct Exe { /* fields omitted */ }

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]

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]

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]

Returns a Command instance suitable for running the drop's executable binary, if one exists.

Trait Implementations

impl Clone for Exe[src]

impl Debug for Exe[src]

impl From<Exe> for Drop[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.