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§
sourcefn get_verification_hint(&self) -> String
fn get_verification_hint(&self) -> String
Returns message about how to install missing executable.
sourcefn get_version_hint(&self) -> String
fn get_version_hint(&self) -> String
Returns message about how to update outdated executable.
sourcefn get_required_version(&self) -> Option<VersionReq>
fn get_required_version(&self) -> Option<VersionReq>
Executable version constraint.
Provided Methods§
sourcefn get_current_version(&self) -> Result<Version>where
Self: Sized,
fn get_current_version(&self) -> Result<Version>where
Self: Sized,
Returns the current version of the executable.