[−][src]Enum ssb_json_msg_data::json::ErrorCode
Everything that can go wrong during deserialization.
Variants
Expected more data but the input ended.
A generic syntax error. Any valid json would have been ok, but alas...
Expected a comma (,
) to separate collection elements.
Expected a colon (:
) to separate a key from a value.
Expected a decimal digit. Didn't get one. Sad times.
Expected hexadecimal digit as part of a unicode escape sequence in a string.
Expected a unicode escape (because we just parsed a unicode escape of a leading surrogate codepoint).
SurrogatePair(InvalidUtf16Tuple)
Could not merge two unicode escapes into a single code point.
A unicode escape encoded a trailing surrogate codepoint without a preceding leading surrogate codepoint.
A string contained an unescaped control code point.
A string contained a backslash followed by a non-escape character.
A string literal contains a non-utf8 byte sequence.
A number is valid json but it evaluates to -0 or an infinity
The input contained valid json followed by at least one non-whitespace byte.
Attempted to parse a number as an i8
that was out of bounds.
Attempted to parse a number as an i16
that was out of bounds.
Attempted to parse a number as an i32
that was out of bounds.
Attempted to parse a number as an i64
that was less than -2^53 or greater than 2^53.
Attempted to parse a number as an u8
that was out of bounds.
Attempted to parse a number as an u16
that was out of bounds.
Attempted to parse a number as an u32
that was out of bounds.
Attempted to parse a number as an u64
that was greater than 2^53.
Chars are represented as strings that contain one unicode scalar value.
Base64(DecodeError)
Attempted to read a string as base64-encoded bytes, but the string was not valid base64.
Expected a boolean, found something else.
Expected a number, found something else.
Expected a string, found something else.
Expected null, found something else.
Expected an array, found something else.
Expected an object, found something else.
Expected an enum, found something else.
Message(String)
Custom, stringly-typed error.
Trait Implementations
impl Clone for ErrorCode
[src]
impl Debug for ErrorCode
[src]
impl Eq for ErrorCode
[src]
impl PartialEq<ErrorCode> for ErrorCode
[src]
impl StructuralEq for ErrorCode
[src]
impl StructuralPartialEq for ErrorCode
[src]
Auto Trait Implementations
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnwindSafe for ErrorCode
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,