pub enum ErrorCode {
None = 0,
Depth = 1,
StateMismatch = 2,
CtrlChar = 3,
Syntax = 4,
Utf8 = 5,
Recursion = 6,
InfOrNan = 7,
UnsupportedType = 8,
InvalidPropertyName = 9,
Utf16 = 10,
NonBackedEnum = 11,
}Expand description
JSON_ERROR_*: what json_last_error() returns.
Variants§
None = 0
JSON_ERROR_NONE: no error.
Depth = 1
JSON_ERROR_DEPTH: the maximum nesting depth was exceeded.
StateMismatch = 2
JSON_ERROR_STATE_MISMATCH: mismatched brackets or invalid JSON.
CtrlChar = 3
JSON_ERROR_CTRL_CHAR: an unescaped control character in a string.
Syntax = 4
JSON_ERROR_SYNTAX: invalid JSON syntax.
Utf8 = 5
JSON_ERROR_UTF8: malformed UTF-8.
Recursion = 6
JSON_ERROR_RECURSION: a value contains itself.
InfOrNan = 7
JSON_ERROR_INF_OR_NAN: INF or NAN cannot be encoded.
UnsupportedType = 8
JSON_ERROR_UNSUPPORTED_TYPE: a value of a type JSON cannot hold.
InvalidPropertyName = 9
JSON_ERROR_INVALID_PROPERTY_NAME: an object key starting with a NUL byte.
Utf16 = 10
JSON_ERROR_UTF16: an unpaired UTF-16 surrogate in a \u escape.
NonBackedEnum = 11
JSON_ERROR_NON_BACKED_ENUM: a non-backed enum cannot be encoded.
Implementations§
Trait Implementations§
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Forget for ErrorCode
impl Freeze for ErrorCode
impl Move for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnsafeUnpin for ErrorCode
impl UnwindSafe for ErrorCode
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.