[−][src]Enum serde_xdr::DeserializationError
Error during deserialization.
Variants
Custom error message.
Fields of Custom
message: String
The message of the custom error.
Failure while deserializing a value.
Fields of Failure
type_name: String
The name of the type that was being deserialized.
cause: Box<CompatDeserializationError>
The error that ocurred during deserialization.
Deserialization of an identifier (for meta-data) is not supported.
Deserialized boolean value is invalid.
Fields of InvalidBool
raw_value: u32
The deserialized value that's not a zero or a one.
Deserialized character value is invalid.
Fields of InvalidChar
raw_value: u32
The deserialized value that's larger than a byte.
Deserialized enum variant is invalid.
Fields of InvalidEnumVariant
Deserialized signed integer is invalid.
Fields of InvalidInteger
Deserialized optional value is invalid.
Deserialized an invalid UTF-8 string.
Fields of InvalidString
cause: FromUtf8Error
The error that ocurred while converting the deserialized bytes into a string.
Deserialized unsigned integer is invalid.
Fields of InvalidUnsignedInteger
IO error while deserializing a value.
Fields of IoError
Map types are not supported by XDR.
Attempt to deserialize a tuple that has too many elements.
Fields of TupleHasTooManyElements
length: usize
Number of elements that were expected, but can't be represented.
Attempt to deserialize an unknown type.
Implementations
impl DeserializationError
[src]
pub fn failure<S, E>(type_name: S, cause: E) -> Self where
S: ToString,
E: Into<CompatDeserializationError>,
[src]
S: ToString,
E: Into<CompatDeserializationError>,
Create a deserialization failure error.
pub fn io_error<S>(type_name: S, cause: Error) -> Self where
S: ToString,
[src]
S: ToString,
Create a deserialization IO error.
Trait Implementations
impl Debug for DeserializationError
[src]
impl Display for DeserializationError
[src]
impl Fail for DeserializationError
[src]
pub fn name(&self) -> Option<&str>
[src]
pub fn cause(&self) -> Option<&dyn Fail>
[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
pub fn context<D>(self, context: D) -> Context<D> where
D: Display + Send + Sync + 'static,
[src]
D: Display + Send + Sync + 'static,
pub fn compat(self) -> Compat<Self>
[src]
impl From<CompatDeserializationError> for DeserializationError
[src]
pub fn from(wrapped_error: CompatDeserializationError) -> Self
[src]
impl From<DeserializationError> for CompatDeserializationError
[src]
pub fn from(error: DeserializationError) -> Self
[src]
Auto Trait Implementations
impl !RefUnwindSafe for DeserializationError
impl Send for DeserializationError
impl Sync for DeserializationError
impl Unpin for DeserializationError
impl !UnwindSafe for DeserializationError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AsFail for T where
T: Fail,
[src]
T: Fail,
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>,