Skip to main content

ManagedRuntimeEnvPlan

Struct ManagedRuntimeEnvPlan 

Source
pub struct ManagedRuntimeEnvPlan {
Show 25 fields pub runtime: ManagedRuntimeKind, pub platform: String, pub runtime_root: PathBuf, pub distribution_root: PathBuf, pub environment_root: PathBuf, pub distribution_source: ManagedRuntimeRootSource, pub environment_source: ManagedRuntimeRootSource, pub runtime_install_root: PathBuf, pub runtime_version: String, pub runtime_executable: PathBuf, pub runtime_install_manifest_hash: String, pub runtime_executable_hash: String, pub package_manager: String, pub package_manager_version: String, pub package_manager_executable: PathBuf, pub package_manager_install_root: PathBuf, pub package_manager_install_manifest_hash: String, pub package_manager_executable_hash: String, pub package_manifest_path: Option<PathBuf>, pub lockfile_path: PathBuf, pub lock_hash: String, pub package_manifest_hash: Option<String>, pub env_hash: String, pub env_dir: PathBuf, pub expected_marker: ManagedRuntimeEnvMarker, /* private fields */
}
Expand description

Resolved managed runtime environment plan used before creation or invocation. 创建环境或调用前使用的受管运行时环境解析计划。

Fields§

§runtime: ManagedRuntimeKind

Managed runtime kind described by this plan. 当前计划描述的受管运行时类型。

§platform: String

Current platform key. 当前平台键。

§runtime_root: PathBuf

Canonical LuaSkills data root used for package stores, snapshots, and compatible resources. 用于包存储、快照与兼容资源的规范 LuaSkills 数据根。

§distribution_root: PathBuf

Canonical read-only root that supplied runtime and package-manager installations. 提供运行时及包管理器安装的规范只读根。

§environment_root: PathBuf

Canonical writable root that owns reusable managed environments. 拥有可复用受管环境的规范可写根。

§distribution_source: ManagedRuntimeRootSource

Stable source of the selected distribution root. 所选发行根的稳定来源。

§environment_source: ManagedRuntimeRootSource

Stable source of the selected environment root. 所选环境根的稳定来源。

§runtime_install_root: PathBuf

Canonical runtime installation directory captured by the plan. 计划捕获的规范运行时安装目录。

§runtime_version: String

Exact interpreter runtime version. 精确解释器运行时版本。

§runtime_executable: PathBuf

Absolute interpreter executable path. 解释器可执行文件绝对路径。

§runtime_install_manifest_hash: String

SHA-256 digest of the selected runtime installation manifest. 所选运行时安装清单的 SHA-256 摘要。

§runtime_executable_hash: String

SHA-256 digest of the selected runtime executable. 所选运行时可执行文件的 SHA-256 摘要。

§package_manager: String

Package manager name such as uv or pnpm. 包管理器名称,例如 uvpnpm

§package_manager_version: String

Exact package-manager version. 精确包管理器版本。

§package_manager_executable: PathBuf

Absolute package-manager executable path. 包管理器可执行文件绝对路径。

§package_manager_install_root: PathBuf

Canonical package-manager installation directory captured by the plan. 计划捕获的规范包管理器安装目录。

§package_manager_install_manifest_hash: String

SHA-256 digest of the selected package-manager installation manifest. 所选包管理器安装清单的 SHA-256 摘要。

§package_manager_executable_hash: String

SHA-256 digest of the selected package-manager executable. 所选包管理器可执行文件的 SHA-256 摘要。

§package_manifest_path: Option<PathBuf>

Optional package manifest path such as package.json. package.json 等可选包清单路径。

§lockfile_path: PathBuf

Required lockfile path. 必需的锁文件路径。

§lock_hash: String

SHA-256 digest of the dependency lockfile content. 依赖锁文件内容的 SHA-256 摘要。

§package_manifest_hash: Option<String>

Optional SHA-256 digest of an additional package manifest such as package.json. package.json 等附加包清单的可选 SHA-256 摘要。

§env_hash: String

Environment identity hash. 环境身份哈希。

§env_dir: PathBuf

Directory that stores this reusable environment. 保存当前可复用环境的目录。

§expected_marker: ManagedRuntimeEnvMarker

Marker expected after environment creation. 环境创建完成后期望写入的标记。

Trait Implementations§

Source§

impl Clone for ManagedRuntimeEnvPlan

Source§

fn clone(&self) -> ManagedRuntimeEnvPlan

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ManagedRuntimeEnvPlan

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for ManagedRuntimeEnvPlan

Source§

impl PartialEq for ManagedRuntimeEnvPlan

Source§

fn eq(&self, other: &ManagedRuntimeEnvPlan) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ManagedRuntimeEnvPlan

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromRef<T> for T
where T: Clone,

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
Source§

impl<L> LayerExt<L> for L

Source§

fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>
where L: Layer<S>,

Applies the layer to a service and wraps it in Layered.
Source§

impl<T> MaybeSend for T
where T: Send,

Source§

impl<T> MaybeSync for T
where T: Sync,

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more