Struct SerializeError

pub struct SerializeError { /* private fields */ }

An error that occurs when serializing an object from 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]. To this end, serialization is generally infallible. However, it can fail when caller provided buffer sizes are too small. When that occurs, a serialization error is reported.

A SerializeError 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 SerializeError

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

impl Display for SerializeError

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

impl Error for SerializeError

Auto Trait Implementations

impl Freeze for SerializeError

impl RefUnwindSafe for SerializeError

impl Send for SerializeError

impl Sync for SerializeError

impl Unpin for SerializeError

impl UnsafeUnpin for SerializeError

impl UnwindSafe for SerializeError

Blanket Implementations

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

impl<T> From<T> for SerializeError

fn from(t: T) -> T

Returns the argument unchanged.

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

fn to_string(&self) -> String

impl<T, U> Into<U> for SerializeError 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 SerializeError where U: Into<T>,

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

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

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