#[non_exhaustive]pub enum Error {
Show 14 variants
Parse(Error),
Fetch(Error),
ExtraInputLeft,
EndOfInput,
AddressOutOfBounds,
ResolutionMismatch,
DataMismatch,
DiscriminantOverflow,
Zero,
OutOfBounds,
UnsupportedLength,
Utf8(FromUtf8Error),
UnknownExtension,
ExtensionType,
}Expand description
Errors encountered during fetching an object. Mostly related to parsing.
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.
Parse(Error)
Arbitrary parsing error.
Fetch(Error)
Arbitrary fetching error.
ExtraInputLeft
Data left after an Inline got parsed.
EndOfInput
EOF.
AddressOutOfBounds
Overran PointInput’s Address vector.
ResolutionMismatch
Address::hash doesn’t match what Resolve returned.
DataMismatch
FullHash::full_hash doesn’t match Singular::hash.
DiscriminantOverflow
Discriminant out of range for an Enum.
Zero
Unepxected zero for a non-zero value.
OutOfBounds
Value out of bounds for a certain type.
UnsupportedLength
Current architecture (32-bit) is unable to handle lengths of this size.
Utf8(FromUtf8Error)
Not UTF-8.
UnknownExtension
Resolve::extension (or related things) were unable to resolve the extension.
ExtensionType
Extension type didn’t match what we asked for. This might be turned into panic later.
Implementations§
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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 Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations§
Source§impl<T> AsAny for T
impl<T> AsAny for T
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