pub enum ErrorKind {
NotAnObject(&'static str),
NotAnInteger(String),
BadType,
TaggedNotAlone(&'static str),
TaggedNotAString(&'static str),
Link(CidError),
Bytes(DecodeError),
Blob(String),
}Expand description
What was wrong at one point in a value.
Variants§
NotAnObject(&'static str)
The top level of a record was not a map.
NotAnInteger(String)
A number with a fractional part, or one no i64 holds.
BadType
$type was present but was not a non-empty string.
TaggedNotAlone(&'static str)
A $link or $bytes object with more than the one key it defines.
TaggedNotAString(&'static str)
The value under $link or $bytes was not a string.
Link(CidError)
The string under $link was not a CID.
Bytes(DecodeError)
The string under $bytes was not base64.
Blob(String)
A blob was missing a field, carried a spare one, or had one of the wrong type.
Trait Implementations§
Source§impl Error for ErrorKind
impl Error for ErrorKind
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()
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnsafeUnpin for ErrorKind
impl UnwindSafe for ErrorKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.