Skip to main content

RecordReport

Enum RecordReport 

Source
pub enum RecordReport {
    IdentityDrifted {
        selector: String,
        target: NodeId,
        target_path: String,
    },
    UnkeptSlot {
        selector: String,
        target_path: String,
    },
    GranularityOverridden {
        slot: NodeId,
        declared_full: bool,
        recorded_full: bool,
    },
    DeclarationOverridden {
        slot: NodeId,
        declared: String,
        recorded: String,
    },
    TypedDeclarationKept {
        slot: NodeId,
        declared: String,
        recorded: String,
    },
    RecordSelectorUnresolved {
        selector: String,
        graft: String,
    },
}
Expand description

What reconciliation noticed while turning records into overlay cuts. 把记录变成 overlay 切口时对账注意到的情况。

Reports are advisory evidence, not failures: a host prints them and keeps the effective tree it was handed. The two record defects that refuse the overlay — identity and path naming different faces, and a directory selector that disagrees with the plan’s graft — are errors, not variants here. 报告是提示性证据而不是失败:宿主打印它们,并使用拿到的有效树。两种会拒绝整次 overlay 的记录缺陷——身份与路径指向不同的面,以及目录选择器与计划里的 graft 不一致——是错误,而不是这里的变体。

Variants§

§

IdentityDrifted

The stored identity and stored path named the same slot only after one of them was reinterpreted; the record was applied at the live face. 存储的身份与存储的路径要经过一次重新解释才指向同一槽位;记录已施加到现存注册面。

Fields

§selector: String

The directory selector the record was stored under. 记录存储所用的目录选择器。

§target: NodeId

The durable identity the record stored for the face. 记录为该注册面存储的耐久身份。

§target_path: String

The stored logical path, used only while the identity resolves. 存储的逻辑路径,仅在身份可解析时使用。

§

UnkeptSlot

No declaration keeps the record’s slot alive in this build, so the record is skipped: either that declaration is #[cfg]-gated off here, or the record was written after the build that produced the static plan. A plan no declaration could ever name is refused at build time instead. 本次构建里没有声明让记录的槽位活着,因此记录被跳过:要么那条声明在这里被 #[cfg] 关掉了,要么记录写在产出静态计划的那次构建之后。没有任何声明可能命名的计划则会在 构建期被拒绝。

Fields

§selector: String

The directory selector the record was stored under. 记录存储所用的目录选择器。

§target_path: String

The stored path no declaration keeps alive. 没有任何声明让它活着的存储路径。

§

GranularityOverridden

The record and the declaration disagree about replacing a subtree. 记录与声明对“是否替换整棵子树”意见不一致。

Fields

§slot: NodeId

The face whose replacement granularity the record changed. 记录改变了替换粒度的注册面。

§declared_full: bool

The subtree-replacement flag the declaration asked for. 声明请求的整棵子树替换标志。

§recorded_full: bool

The flag the record puts in its place. 记录取而代之的标志。

§

DeclarationOverridden

A string-form declaration was superseded by the record. 一条字符串形式声明被记录取代。

Fields

§slot: NodeId

The face whose string declaration the record replaced. 记录取代其字符串声明的注册面。

§declared: String

The implementation name the string declaration wrote. 字符串声明写下的实现名。

§recorded: String

The implementation name the record puts in its place. 记录取而代之的实现名。

§

TypedDeclarationKept

A typed-form declaration was left final and the record ignored. 一条类型化形式声明保持最终,记录被忽略。

Fields

§slot: NodeId

The face whose typed declaration stays final. 类型化声明保持最终的注册面。

§declared: String

The typed implementation name that was kept. 被保留的类型化实现名。

§recorded: String

The record’s implementation name that was ignored. 被忽略的记录实现名。

§

RecordSelectorUnresolved

The record names an implementation the external registry cannot resolve. 记录命名了一个外部注册机无法解析的实现。

Fields

§selector: String

The directory selector the record was stored under. 记录存储所用的目录选择器。

§graft: String

The implementation name the external registry cannot resolve. 外部注册机无法解析的实现名。

Trait Implementations§

Source§

impl Clone for RecordReport

Source§

fn clone(&self) -> RecordReport

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 RecordReport

Source§

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

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

impl Display for RecordReport

Source§

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

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

impl Eq for RecordReport

Source§

impl PartialEq for RecordReport

Source§

fn eq(&self, other: &RecordReport) -> 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 RecordReport

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<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> 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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
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.