[−][src]Enum serde_php::Error
PHP serialization/deserialization error.
Variants
WriteSerialized(Error)
Error writing serializated value: {0}
ReadSerialized(Error)
Error reading serializing value: {0}
Unexpected end of file while reading,
Expected {expected}
but got {actual}
instead.
Expected a digit, but got {actual}
instead.
Fields of ExpectedDigit
actual: char
Non-digit found.
Utf8Error(Utf8Error)
Deserialized bytestring is not valid UTF: {0}
CharConversionFailed(CharTryFromError)
Could not convert into char from decimal value: {0}
Not a valid number or incorrect number type: {0}
InvalidBooleanValue(char)
Not a valid value for boolean: {0}
UnsupportedArrayKeyType(char)
Unsupported array key type (must be all strings or all numeric): {0}
InvalidTypeIndicator(char)
Invalid type indicator on value: {0}
MissingFeature(&'static str)
Feature not implemented by serde_php
: {0}
Array-index mismatch (must be in-order and numeric), expected {expected} but got {actual}
Attempted to serialize sequence of unknown length.
PHP requires all collections to be length prefixed. Serializing sequences of unknown length requires writing these to a memory buffer with potentially unbounded space requirements and is thus disabled.
SerializationFailed(String)
PHP Deserialization failed: {0}
DeserializationFailed(String)
PHP Serialization failed: {0}
Trait Implementations
impl Debug for Error
[src]
impl Display for Error
[src]
impl Error for Error
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn description(&self) -> &str
1.0.0[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl Error for Error
[src]
impl Error for Error
[src]
fn custom<T>(msg: T) -> Self where
T: Display,
[src]
T: Display,
fn invalid_type(unexp: Unexpected<'_>, exp: &dyn Expected) -> Self
[src]
fn invalid_value(unexp: Unexpected<'_>, exp: &dyn Expected) -> Self
[src]
fn invalid_length(len: usize, exp: &dyn Expected) -> Self
[src]
fn unknown_variant(variant: &str, expected: &'static [&'static str]) -> Self
[src]
fn unknown_field(field: &str, expected: &'static [&'static str]) -> Self
[src]
fn missing_field(field: &'static str) -> Self
[src]
fn duplicate_field(field: &'static str) -> Self
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,