pub enum ErrorCode {
Show 32 variants
Io(String),
Message(String),
Base64Error(DecodeError),
Eof,
ExpectedArray,
ExpectedArrayEnd,
ExpectedAttribute,
ExpectedAttributeEnd,
ExpectedBoolean,
ExpectedComma,
ExpectedChar,
ExpectedFloat,
ExpectedInteger,
ExpectedOption,
ExpectedOptionEnd,
ExpectedMap,
ExpectedMapColon,
ExpectedMapEnd,
ExpectedStruct,
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
ExpectedInteger
ExpectedOption
ExpectedOptionEnd
ExpectedMap
ExpectedMapColon
ExpectedMapEnd
ExpectedStruct
ExpectedStructEnd
ExpectedUnit
ExpectedString
ExpectedStringEnd
ExpectedIdentifier
InvalidEscape(&'static str)
IntegerOutOfBounds
NoSuchExtension(String)
UnclosedBlockComment
UnderscoreAtBeginning
UnexpectedByte(char)
Utf8Error(Utf8Error)
TrailingCharacters
Trait Implementations
sourceimpl From<FromUtf8Error> for ErrorCode
impl From<FromUtf8Error> for ErrorCode
sourcefn from(e: FromUtf8Error) -> Self
fn from(e: FromUtf8Error) -> Self
Converts to this type from the input type.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more