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
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
GranularityOverridden
The record and the declaration disagree about replacing a subtree. 记录与声明对“是否替换整棵子树”意见不一致。
Fields
DeclarationOverridden
A string-form declaration was superseded by the record. 一条字符串形式声明被记录取代。
Fields
TypedDeclarationKept
A typed-form declaration was left final and the record ignored. 一条类型化形式声明保持最终,记录被忽略。
Fields
RecordSelectorUnresolved
The record names an implementation the external registry cannot resolve. 记录命名了一个外部注册机无法解析的实现。
Trait Implementations§
Source§impl Clone for RecordReport
impl Clone for RecordReport
Source§fn clone(&self) -> RecordReport
fn clone(&self) -> RecordReport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more