pub enum InstallState {
Fresh,
Updated,
AlreadyCurrent,
HostExecuted,
HostPrinted,
DryRun,
}Expand description
安装结果状态(人可读文案见 InstallState::label)。
Variants§
Fresh
全新创建(此前没有配置文件/条目)。
Updated
升级更新(原有 wanning 条目被替换,旧文件已备份)。
AlreadyCurrent
已是最新:逐字节未动,无备份无 diff。
HostExecuted
已执行宿主 CLI(--yes)。
HostPrinted
只打印宿主命令行(未执行;加 --yes 执行)。
DryRun
dry-run:打印了将做的动作,零落盘。
Implementations§
Trait Implementations§
Source§impl Clone for InstallState
impl Clone for InstallState
Source§fn clone(&self) -> InstallState
fn clone(&self) -> InstallState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for InstallState
Source§impl Debug for InstallState
impl Debug for InstallState
impl Eq for InstallState
Source§impl PartialEq for InstallState
impl PartialEq for InstallState
impl StructuralPartialEq for InstallState
Auto Trait Implementations§
impl Freeze for InstallState
impl RefUnwindSafe for InstallState
impl Send for InstallState
impl Sync for InstallState
impl Unpin for InstallState
impl UnsafeUnpin for InstallState
impl UnwindSafe for InstallState
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