pub struct Plugin {
pub name: String,
pub dir: PathBuf,
/* private fields */
}Fields§
§name: String§dir: PathBufImplementations§
Source§impl Plugin
impl Plugin
pub async fn backend_exec_env( &self, ctx: BackendExecEnvContext, ) -> Result<BackendExecEnvResponse>
Source§impl Plugin
impl Plugin
pub async fn backend_install( &self, ctx: BackendInstallContext, ) -> Result<BackendInstallResponse>
Source§impl Plugin
impl Plugin
pub async fn backend_list_versions( &self, ctx: BackendListVersionsContext, ) -> Result<BackendListVersionsResponse>
Source§impl Plugin
impl Plugin
pub async fn parse_legacy_file( &self, legacy_file: &Path, ) -> Result<ParseLegacyFileResponse>
Source§impl Plugin
impl Plugin
pub async fn pre_install(&self, version: &str) -> Result<PreInstall>
pub async fn pre_install_for_platform( &self, version: &str, os: &str, arch: &str, ) -> Result<PreInstall>
Source§impl Plugin
impl Plugin
pub fn from_dir(dir: &Path) -> Result<Self>
pub fn from_embedded( name: &str, embedded: &'static EmbeddedPlugin, ) -> Result<Self>
pub fn from_name(name: &str) -> Result<Self>
pub fn from_name_or_dir(name: &str, dir: &Path) -> Result<Self>
pub fn is_embedded(&self) -> bool
Sourcepub fn set_cmd_env(&self, env: &IndexMap<String, String>) -> Result<()>
pub fn set_cmd_env(&self, env: &IndexMap<String, String>) -> Result<()>
Store an environment map in the Lua registry for use by cmd.exec(). This allows env module hooks to run commands that find mise-managed tools on PATH.
pub fn list() -> Result<Vec<String>>
pub fn get_metadata(&self) -> Result<Metadata>
pub fn sdk_info(&self, version: String, install_dir: PathBuf) -> Result<SdkInfo>
Trait Implementations§
Source§impl Ord for Plugin
impl Ord for Plugin
Source§impl PartialOrd for Plugin
impl PartialOrd for Plugin
impl Eq for Plugin
Auto Trait Implementations§
impl !Freeze for Plugin
impl !RefUnwindSafe for Plugin
impl Send for Plugin
impl Sync for Plugin
impl Unpin for Plugin
impl !UnwindSafe for Plugin
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> BorrowUnordered for T
impl<T> BorrowUnordered for T
fn as_unordered(&self) -> &Unordered<T>
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
fn equivalent(&self, key: &K) -> bool
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 moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.