pub enum TraceArtifactError {
UnsupportedVersion(u32),
MissingKey(&'static str),
UnknownKey(String),
Malformed {
line: usize,
message: String,
},
DuplicateFrame(u64),
DuplicateLocal(u64),
MissingParent(u64),
DanglingEdge {
from: u64,
to: u64,
},
}Expand description
Why a nichlink.trace document was refused.
nichlink.trace 文档被拒绝的原因。
Variants§
UnsupportedVersion(u32)
Document declares a layout this build cannot read. 文档声明的版式是本构建读不懂的。
MissingKey(&'static str)
Document omitted a required scalar key. 文档缺少一个必需的标量键。
UnknownKey(String)
Document carried a key this format does not define. 文档带有本格式未定义的键。
Malformed
Document had a line, field count, or escape the format cannot read. 文档中存在本格式读不懂的行、字段数或转义。
Fields
DuplicateFrame(u64)
Two frames carry the same id. 两个调用帧使用了同一个 id。
DuplicateLocal(u64)
Two locals carry the same id. 两个局部值使用了同一个 id。
MissingParent(u64)
A frame names a parent frame the document does not contain. 某个调用帧指名的父帧不在文档中。
DanglingEdge
An edge endpoint has no local in the document. 某条边的端点没有对应的局部值。
Trait Implementations§
Source§impl Clone for TraceArtifactError
impl Clone for TraceArtifactError
Source§impl Debug for TraceArtifactError
impl Debug for TraceArtifactError
Source§impl Display for TraceArtifactError
impl Display for TraceArtifactError
impl Eq for TraceArtifactError
Source§impl Error for TraceArtifactError
impl Error for TraceArtifactError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for TraceArtifactError
impl PartialEq for TraceArtifactError
impl StructuralPartialEq for TraceArtifactError
Auto Trait Implementations§
impl Freeze for TraceArtifactError
impl RefUnwindSafe for TraceArtifactError
impl Send for TraceArtifactError
impl Sync for TraceArtifactError
impl Unpin for TraceArtifactError
impl UnsafeUnpin for TraceArtifactError
impl UnwindSafe for TraceArtifactError
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