pub enum ErrorCode {
Show 35 variants
Io(String),
Message(String),
Base64Error(DecodeError),
Eof,
ExpectedArray,
ExpectedArrayEnd,
ExpectedAttribute,
ExpectedAttributeEnd,
ExpectedBoolean,
ExpectedComma,
ExpectedChar,
ExpectedFloat,
FloatUnderscore,
ExpectedInteger,
ExpectedOption,
ExpectedOptionEnd,
ExpectedMap,
ExpectedMapColon,
ExpectedMapEnd,
ExpectedStructName {
expected: &'static str,
found: String,
},
ExpectedStruct,
ExpectedNamedStruct(&'static str),
ExpectedStructEnd,
ExpectedUnit,
ExpectedString,
ExpectedStringEnd,
ExpectedIdentifier,
InvalidEscape(&'static str),
IntegerOutOfBounds,
NoSuchExtension(String),
UnclosedBlockComment,
UnderscoreAtBeginning,
UnexpectedByte(char),
Utf8Error(Utf8Error),
TrailingCharacters,
// some variants omitted
}
Variants§
Io(String)
Message(String)
Base64Error(DecodeError)
Eof
ExpectedArray
ExpectedArrayEnd
ExpectedAttribute
ExpectedAttributeEnd
ExpectedBoolean
ExpectedComma
ExpectedChar
ExpectedFloat
FloatUnderscore
ExpectedInteger
ExpectedOption
ExpectedOptionEnd
ExpectedMap
ExpectedMapColon
ExpectedMapEnd
ExpectedStructName
ExpectedStruct
ExpectedNamedStruct(&'static str)
ExpectedStructEnd
ExpectedUnit
ExpectedString
ExpectedStringEnd
ExpectedIdentifier
InvalidEscape(&'static str)
IntegerOutOfBounds
NoSuchExtension(String)
UnclosedBlockComment
UnderscoreAtBeginning
UnexpectedByte(char)
Utf8Error(Utf8Error)
TrailingCharacters
Trait Implementations§
source§impl From<FromUtf8Error> for ErrorCode
impl From<FromUtf8Error> for ErrorCode
source§fn from(e: FromUtf8Error) -> Self
fn from(e: FromUtf8Error) -> Self
Converts to this type from the input type.
source§impl PartialEq<ErrorCode> for ErrorCode
impl PartialEq<ErrorCode> for ErrorCode
impl StructuralPartialEq for ErrorCode
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§
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