Skip to main content

InstallError

Enum InstallError 

Source
pub enum InstallError {
    Unsupported(String),
    TargetUnresolved(String),
    BadExisting(String),
    Io(String),
    HostNotFound(String),
    HostFailed(String),
    Generate(String),
}
Expand description

安装失败。全部 fail-closed:宁可拒装,绝不产出一份坏的/半吊子的配置。

Variants§

§

Unsupported(String)

平台不支持 --install(codex:TOML 主配置文本合并风险大,给人工指引)。

§

TargetUnresolved(String)

落点解析不出(如 DSH_HOME 未设;不猜落点)。

§

BadExisting(String)

现有配置形状不对(损坏 JSON/顶层不是对象/不是 insert 列表),拒绝动它。

§

Io(String)

文件系统错误。

§

HostNotFound(String)

宿主 CLI 解析不到/无法启动。

§

HostFailed(String)

宿主 CLI 执行失败(退出码非 0)。

§

Generate(String)

生成产物异常(install 依赖生成器,生成失败即拒装)。

Implementations§

Trait Implementations§

Source§

impl Debug for InstallError

Source§

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

Formats the value using the given formatter. Read more

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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.