Enum serde_redis::decode::Error [−][src]
pub enum Error { Custom(String), EndOfStream, UnknownVariant(String, &'static [&'static str]), UnknownField(String, &'static [&'static str]), MissingField(&'static str), DuplicateField(&'static str), DeserializeNotSupported, WrongValue(String), StrFromUtf8(Utf8Error), StringFromUtf8(FromUtf8Error), ParseInt(ParseIntError), ParseFloat(ParseFloatError), }
Error that can be produced during deserialization
Variants
Custom(String)
UnknownVariant(String, &'static [&'static str])
UnknownField(String, &'static [&'static str])
MissingField(&'static str)
DuplicateField(&'static str)
WrongValue(String)
StrFromUtf8(Utf8Error)
StringFromUtf8(FromUtf8Error)
ParseInt(ParseIntError)
ParseFloat(ParseFloatError)
Implementations
Trait Implementations
impl Error for Error
[src]
impl Error for Error
[src]fn custom<T: Display>(msg: T) -> Self
[src]
Raised when there is general error when deserializing a type.
fn unknown_variant(variant: &str, expected: &'static [&'static str]) -> Self
[src]
Raised when a Deserialize
enum type received an unexpected variant.
fn unknown_field(field: &str, expected: &'static [&'static str]) -> Error
[src]
fn missing_field(field: &'static str) -> Error
[src]
fn duplicate_field(field: &'static str) -> Error
[src]
pub fn invalid_type(unexp: Unexpected<'_>, exp: &dyn Expected) -> Self
[src]
pub fn invalid_value(unexp: Unexpected<'_>, exp: &dyn Expected) -> Self
[src]
pub fn invalid_length(len: usize, exp: &dyn Expected) -> Self
[src]
impl From<FromUtf8Error> for Error
[src]
impl From<FromUtf8Error> for Error
[src]fn from(err: FromUtf8Error) -> Error
[src]
impl From<ParseFloatError> for Error
[src]
impl From<ParseFloatError> for Error
[src]fn from(err: ParseFloatError) -> Error
[src]
impl From<ParseIntError> for Error
[src]
impl From<ParseIntError> for Error
[src]fn from(err: ParseIntError) -> Error
[src]
Auto Trait Implementations
impl RefUnwindSafe for Error
impl RefUnwindSafe for Error
impl UnwindSafe for Error
impl UnwindSafe for Error