pub struct Vfox {
pub runtime_version: String,
pub install_dir: PathBuf,
pub plugin_dir: PathBuf,
pub cache_dir: PathBuf,
pub download_dir: PathBuf,
/* private fields */
}
Fields§
§runtime_version: String
§install_dir: PathBuf
§plugin_dir: PathBuf
§cache_dir: PathBuf
§download_dir: PathBuf
Implementations§
Source§impl Vfox
impl Vfox
pub fn new() -> Self
pub fn log_subscribe(&mut self) -> Receiver<String>
pub fn list_available_sdks() -> &'static BTreeMap<String, Url>
pub async fn list_available_versions( &self, sdk: &str, ) -> Result<Vec<AvailableVersion>>
pub fn list_installed_versions(&self, sdk: &str) -> Result<Vec<SdkInfo>>
pub fn list_sdks(&self) -> Result<Vec<Plugin>>
pub fn get_sdk(&self, name: &str) -> Result<Plugin>
pub fn install_plugin(&self, sdk: &str) -> Result<Plugin>
pub fn install_plugin_from_url(&self, url: &Url) -> Result<Plugin>
pub fn uninstall_plugin(&self, sdk: &str) -> Result<()>
pub async fn install<ID: AsRef<Path>>( &self, sdk: &str, version: &str, install_dir: ID, ) -> Result<()>
pub fn uninstall(&self, sdk: &str, version: &str) -> Result<()>
pub async fn metadata(&self, sdk: &str) -> Result<Metadata>
pub async fn env_keys(&self, sdk: &str, version: &str) -> Result<Vec<EnvKey>>
pub async fn mise_env<T: Serialize>( &self, sdk: &str, opts: T, ) -> Result<Vec<EnvKey>>
pub async fn backend_list_versions( &self, sdk: &str, tool: &str, ) -> Result<Vec<String>>
pub async fn backend_install( &self, sdk: &str, tool: &str, version: &str, install_path: PathBuf, ) -> Result<()>
pub async fn backend_exec_env( &self, sdk: &str, tool: &str, version: &str, install_path: PathBuf, ) -> Result<Vec<EnvKey>>
pub async fn mise_path<T: Serialize>( &self, sdk: &str, opts: T, ) -> Result<Vec<String>>
pub async fn parse_legacy_file( &self, sdk: &str, file: &Path, ) -> Result<ParseLegacyFileResponse>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Vfox
impl RefUnwindSafe for Vfox
impl Send for Vfox
impl Sync for Vfox
impl Unpin for Vfox
impl UnwindSafe for Vfox
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more