Trait ptx_builder::executable::Executable

source ·
pub trait Executable {
    // Required methods
    fn get_name(&self) -> String;
    fn get_verification_hint(&self) -> String;
    fn get_version_hint(&self) -> String;
    fn get_required_version(&self) -> Option<VersionReq>;

    // Provided method
    fn get_current_version(&self) -> Result<Version>
       where Self: Sized { ... }
}
Expand description

Details and requirements for executables.

Required Methods§

source

fn get_name(&self) -> String

Returns executable name in PATH.

source

fn get_verification_hint(&self) -> String

Returns message about how to install missing executable.

source

fn get_version_hint(&self) -> String

Returns message about how to update outdated executable.

source

fn get_required_version(&self) -> Option<VersionReq>

Executable version constraint.

Provided Methods§

source

fn get_current_version(&self) -> Result<Version>
where Self: Sized,

Returns the current version of the executable.

Implementors§