#[non_exhaustive]pub enum ManifestError {
Io(Error),
FileTooLarge {
size: u64,
max: u64,
},
Json(Error),
InvalidUtf8 {
source: Utf8Error,
},
Validation {
message: String,
},
}Expand description
Errors returned while parsing Neo manifest files.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Io(Error)
Failed to read the manifest file contents.
FileTooLarge
Manifest content exceeded the configured maximum size.
Json(Error)
The manifest JSON failed to parse.
InvalidUtf8
The manifest bytes were not valid UTF-8.
Validation
The manifest passed JSON parsing but failed strict semantic validation.
Trait Implementations§
Source§impl Debug for ManifestError
impl Debug for ManifestError
Source§impl Display for ManifestError
impl Display for ManifestError
Source§impl Error for ManifestError
impl Error for ManifestError
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 From<Error> for ManifestError
impl From<Error> for ManifestError
Source§impl From<Error> for ManifestError
impl From<Error> for ManifestError
Source§impl From<ManifestError> for Error
impl From<ManifestError> for Error
Source§fn from(source: ManifestError) -> Self
fn from(source: ManifestError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ManifestError
impl !RefUnwindSafe for ManifestError
impl Send for ManifestError
impl Sync for ManifestError
impl Unpin for ManifestError
impl !UnwindSafe for ManifestError
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