Struct DeserializeError

pub struct DeserializeError(/* private field */);

An error that occurs when deserializing an object defined in this crate.

Serialization, as used in this crate, universally refers to the process of transforming a structure (like a DFA) into a custom binary format represented by &[u8]. Deserialization, then, refers to the process of cheaply converting this binary format back to the object's in-memory representation as defined in this crate. To the extent possible, deserialization will report this error whenever this process fails.

A DeserializeError provides no introspection capabilities. Its only supported operation is conversion to a human readable error message.

This error type implements the std::error::Error trait only when the std feature is enabled. Otherwise, this type is defined in all configurations.

Trait Implementations

impl Debug for DeserializeError

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Display for DeserializeError

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Error for DeserializeError

Auto Trait Implementations

impl Freeze for DeserializeError

impl RefUnwindSafe for DeserializeError

impl Send for DeserializeError

impl Sync for DeserializeError

impl Unpin for DeserializeError

impl UnsafeUnpin for DeserializeError

impl UnwindSafe for DeserializeError

Blanket Implementations

impl<T> Any for DeserializeError where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for DeserializeError where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for DeserializeError where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for DeserializeError

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToString for DeserializeError where T: Display + ?Sized,

fn to_string(&self) -> String

impl<T, U> Into<U> for DeserializeError where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for DeserializeError where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for DeserializeError where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>