pub enum LayoutError {
Json(String),
Io(Error),
NoStorageLayout,
UnknownField(String),
UnknownType(String),
Shape {
path: String,
what: &'static str,
expected: &'static str,
},
BadKey(String, String),
Syntax(String),
DynamicKey(String),
}Expand description
Layout parsing and path resolution failures.
Variants§
Json(String)
The layout JSON did not parse.
Io(Error)
The artifact file could not be read.
NoStorageLayout
Neither a bare layout nor an artifact with a storageLayout key.
UnknownField(String)
No such top-level variable or struct member.
UnknownType(String)
The layout references a type id it does not define.
Shape
The path continues past something that cannot be indexed that way.
Fields
BadKey(String, String)
A mapping key or array index did not parse.
Syntax(String)
The path string is malformed.
DynamicKey(String)
string/bytes mapping keys are hashed differently and not handled yet.
Trait Implementations§
Source§impl Debug for LayoutError
impl Debug for LayoutError
Source§impl Display for LayoutError
impl Display for LayoutError
Source§impl Error for LayoutError
impl Error for LayoutError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for LayoutError
impl !UnwindSafe for LayoutError
impl Freeze for LayoutError
impl Send for LayoutError
impl Sync for LayoutError
impl Unpin for LayoutError
impl UnsafeUnpin for LayoutError
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