[][src]Enum savefile::SavefileError

#[must_use]
pub enum SavefileError {
    IncompatibleSchema {
        message: String,
    },
    IOError {
        io_error: Error,
    },
    InvalidUtf8 {
        msg: String,
    },
    OutOfMemory {
        err: AllocErr,
    },
    MemoryAllocationLayoutError,
    ArrayvecCapacityError {
        msg: String,
    },
}

This object represents an error in deserializing or serializing an item.

Variants

IncompatibleSchema

Fields of IncompatibleSchema

message: String
IOError

Fields of IOError

io_error: Error
InvalidUtf8

Fields of InvalidUtf8

msg: String
OutOfMemory

Fields of OutOfMemory

err: AllocErr
MemoryAllocationLayoutError
ArrayvecCapacityError

Fields of ArrayvecCapacityError

msg: String

Trait Implementations

impl From<Error> for SavefileError[src]

impl From<AllocErr> for SavefileError[src]

impl From<FromUtf8Error> for SavefileError[src]

impl<T> From<CapacityError<T>> for SavefileError[src]

impl Debug for SavefileError[src]

impl Display for SavefileError[src]

impl Fail for SavefileError[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AsFail for T where
    T: Fail
[src]

impl<E> Fail for E where
    E: 'static + Error + Send + Sync
[src]

impl<T> Erased for T