Enum bincode_core::DeserializeError [−][src]
Errors that can occur while deserializing
Variants
Read(R::Error)
Failed to read from the provided CoreRead
. The inner exception is given.
InvalidBoolValue(u8)
Invalid bool value. Only 0
and 1
are valid values.
Invalid character encoding while trying to deserialize a &str
.
Utf8(Utf8Error)
UTF8 error while trying to deserialize a &str
InvalidOptionValue(u8)
Invalid value for the Option
part of Option<T>
. Only 0
and 1
are accepted values.
LimitError(LimitError)
Limit error reached. See the inner exception for more info.
Could not cast from type from_type
to type to_type
. Usually this means that the data is encoded with a different version or protocol.
Fields of InvalidCast
InvalidUtf8Encoding(Utf8Error)
Invalid UTF8 encoding while trying to parse a &str
or String
Invalid value (u128 range): you may have a version or configuration disagreement?
Byte 255 is treated as an extension point; it should not be encoding anything. Do you have a mismatched bincode version or configuration?
Trait Implementations
impl<'a, R: CoreRead<'a>> Debug for DeserializeError<'a, R>
[src]
impl<'a, R: CoreRead<'a>> Display for DeserializeError<'a, R>
[src]
impl<'a, R: CoreRead<'a>> Error for DeserializeError<'a, R>
[src]
pub fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
pub fn description(&self) -> &str
1.0.0[src]
pub fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl<'a, R: CoreRead<'a>> Error for DeserializeError<'a, R>
[src]
fn custom<T: Display>(_cause: T) -> Self
[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]
pub fn unknown_variant(variant: &str, expected: &'static [&'static str]) -> Self
[src]
pub fn unknown_field(field: &str, expected: &'static [&'static str]) -> Self
[src]
pub fn missing_field(field: &'static str) -> Self
[src]
pub fn duplicate_field(field: &'static str) -> Self
[src]
impl<'a, R: CoreRead<'a>> From<Utf8Error> for DeserializeError<'a, R>
[src]
Auto Trait Implementations
impl<'a, R> RefUnwindSafe for DeserializeError<'a, R> where
<R as CoreRead<'a>>::Error: RefUnwindSafe,
<R as CoreRead<'a>>::Error: RefUnwindSafe,
impl<'a, R> Send for DeserializeError<'a, R> where
<R as CoreRead<'a>>::Error: Send,
<R as CoreRead<'a>>::Error: Send,
impl<'a, R> Sync for DeserializeError<'a, R> where
<R as CoreRead<'a>>::Error: Sync,
<R as CoreRead<'a>>::Error: Sync,
impl<'a, R> Unpin for DeserializeError<'a, R> where
<R as CoreRead<'a>>::Error: Unpin,
<R as CoreRead<'a>>::Error: Unpin,
impl<'a, R> UnwindSafe for DeserializeError<'a, R> where
<R as CoreRead<'a>>::Error: UnwindSafe,
<R as CoreRead<'a>>::Error: UnwindSafe,
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,
pub 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.
pub 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>,