pub enum GraftPlanDocumentError {
UnsupportedVersion(u32),
InvalidSelector(String),
MissingKey(&'static str),
UnknownKey(String),
Malformed {
line: usize,
message: String,
},
}Expand description
Why a graft.plan document was refused.
graft.plan 文档被拒绝的原因。
Variants§
UnsupportedVersion(u32)
Document declares a layout this build cannot read. 文档声明的版式是本构建读不懂的。
InvalidSelector(String)
The selector names something the plan format cannot store. 选择器命名了计划格式存不下的东西。
MissingKey(&'static str)
Document omitted a required key. 文档缺少一个必需的键。
UnknownKey(String)
Document carried a key this format does not define. 文档带有本格式未定义的键。
Malformed
Document had a line the format cannot read. 文档中存在本格式读不懂的行。
Trait Implementations§
Source§impl Clone for GraftPlanDocumentError
impl Clone for GraftPlanDocumentError
Source§fn clone(&self) -> GraftPlanDocumentError
fn clone(&self) -> GraftPlanDocumentError
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 moreSource§impl Debug for GraftPlanDocumentError
impl Debug for GraftPlanDocumentError
Source§impl Display for GraftPlanDocumentError
impl Display for GraftPlanDocumentError
impl Eq for GraftPlanDocumentError
Source§impl Error for GraftPlanDocumentError
impl Error for GraftPlanDocumentError
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 GraftPlanDocumentError
impl PartialEq for GraftPlanDocumentError
impl StructuralPartialEq for GraftPlanDocumentError
Auto Trait Implementations§
impl Freeze for GraftPlanDocumentError
impl RefUnwindSafe for GraftPlanDocumentError
impl Send for GraftPlanDocumentError
impl Sync for GraftPlanDocumentError
impl Unpin for GraftPlanDocumentError
impl UnsafeUnpin for GraftPlanDocumentError
impl UnwindSafe for GraftPlanDocumentError
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