pub enum LoadError {
NotFound(PathBuf),
Io(PathBuf, Error),
Utf8(PathBuf),
}Expand description
Why the contract file could not be loaded (distinct from a validation
failure, which is carried by Problems). Maps to a §2 exit-2 system error.
Variants§
NotFound(PathBuf)
No OSS-RELEASE.md at the expected path.
Io(PathBuf, Error)
The file exists but could not be read.
Utf8(PathBuf)
The file is not valid UTF-8.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for LoadError
impl !UnwindSafe for LoadError
impl Freeze for LoadError
impl Send for LoadError
impl Sync for LoadError
impl Unpin for LoadError
impl UnsafeUnpin for LoadError
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