pub enum IpldError {
NotBool,
NotInteger,
NotFloat,
NotString,
NotBytes,
NotList,
NotMap,
NotLink,
NotKey,
IndexNotFound,
KeyNotFound,
}
Expand description
Ipld type error.
Variants§
NotBool
Expected a boolean.
NotInteger
Expected an integer.
NotFloat
Expected a float.
NotString
Expected a string.
NotBytes
Expected bytes.
NotList
Expected a list.
NotMap
Expected a map.
NotLink
Expected a cid.
NotKey
Expected a key.
IndexNotFound
Index not found.
KeyNotFound
Key not found.
Trait Implementations§
Source§impl Error for IpldError
impl Error for IpldError
1.30.0 · 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<Infallible> for IpldError
impl From<Infallible> for IpldError
Source§fn from(_: Infallible) -> Self
fn from(_: Infallible) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IpldError
impl RefUnwindSafe for IpldError
impl Send for IpldError
impl Sync for IpldError
impl Unpin for IpldError
impl UnwindSafe for IpldError
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