pub enum MetaValError {
NullError(NulError),
FromUtf8Error(FromUtf8Error),
NegativeReturn(i32),
}
Expand description
Failed fetching metadata value
Variants§
NullError(NulError)
The provided string contains an unexpected null-byte
FromUtf8Error(FromUtf8Error)
The returned data contains invalid UTF8 data
NegativeReturn(i32)
Got negative return value. This happens if the key or index queried does not exist.
Trait Implementations§
Source§impl Debug for MetaValError
impl Debug for MetaValError
Source§impl Display for MetaValError
impl Display for MetaValError
Source§impl Error for MetaValError
impl Error for MetaValError
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<FromUtf8Error> for MetaValError
impl From<FromUtf8Error> for MetaValError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<NulError> for MetaValError
impl From<NulError> for MetaValError
Source§impl PartialEq for MetaValError
impl PartialEq for MetaValError
impl Eq for MetaValError
impl StructuralPartialEq for MetaValError
Auto Trait Implementations§
impl Freeze for MetaValError
impl RefUnwindSafe for MetaValError
impl Send for MetaValError
impl Sync for MetaValError
impl Unpin for MetaValError
impl UnwindSafe for MetaValError
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