#[non_exhaustive]pub enum ErrorKind {
Eof,
MismatchByte {
expected: u8,
found: u8,
position: usize,
},
UnexpectedByte {
found: u8,
position: usize,
},
Utf8(Utf8Error),
Deserialize {
message: String,
position: Option<usize>,
},
Empty {
position: usize,
},
MissingQuotes {
position: usize,
},
StringTooLong {
position: usize,
},
InvalidNumber {
position: usize,
},
Overflow {
position: usize,
},
}Expand description
The kind of error that can occur when working with PHP serialized data.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Eof
MismatchByte
UnexpectedByte
Utf8(Utf8Error)
Deserialize
Empty
MissingQuotes
StringTooLong
InvalidNumber
Overflow
Trait Implementations§
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