Enum dioxus_cli::tools::Tool
source · pub enum Tool {
Binaryen,
Sass,
Tailwind,
}
Variants§
Implementations§
source§impl Tool
impl Tool
sourcepub fn target_platform(&self) -> &str
pub fn target_platform(&self) -> &str
get target platform
sourcepub fn tool_version(&self) -> &str
pub fn tool_version(&self) -> &str
get tool version
sourcepub fn download_url(&self) -> String
pub fn download_url(&self) -> String
get tool package download url
sourcepub fn is_installed(&self) -> bool
pub fn is_installed(&self) -> bool
check tool state
sourcepub fn temp_out_path(&self) -> PathBuf
pub fn temp_out_path(&self) -> PathBuf
get download temp path
sourcepub async fn download_package(&self) -> Result<PathBuf>
pub async fn download_package(&self) -> Result<PathBuf>
start to download package
sourcepub async fn install_package(&self) -> Result<()>
pub async fn install_package(&self) -> Result<()>
start to install package
pub fn call(&self, command: &str, args: Vec<&str>) -> Result<Vec<u8>>
Trait Implementations§
source§impl PartialEq<Tool> for Tool
impl PartialEq<Tool> for Tool
impl Eq for Tool
impl StructuralEq for Tool
impl StructuralPartialEq for Tool
Auto Trait Implementations§
impl RefUnwindSafe for Tool
impl Send for Tool
impl Sync for Tool
impl Unpin for Tool
impl UnwindSafe for Tool
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.