[][src]Enum gestalt::SaveError

pub enum SaveError {
    SerdeError(SerdeError),
    DecodeError,
    IOError(IOError),
    SaveLocationNotFound,
    SaveWriteFailed,
    SaveNotFound(String),
}

An error that can occur during a save or load operation

Variants

SerdeError(SerdeError)

Some serialization failed during save or load

DecodeError

Save string is failed to decode (web-specific)

IOError(IOError)

Some IO failed during save or load

SaveLocationNotFound

The user has no home directory so no save or load location can be established

SaveWriteFailed

The save cannot be written (web-specific)

SaveNotFound(String)

The save profile with the given name was not found

On desktop this will more likely be reported as an IO error, but on web it will be a SaveNotFound

Trait Implementations

impl From<Error> for SaveError[src]

impl From<Error> for SaveError[src]

impl Display for SaveError[src]

impl Debug for SaveError[src]

impl Error for SaveError[src]

Auto Trait Implementations

Blanket Implementations

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

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

impl<T> ToString for T where
    T: Display + ?Sized
[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> Borrow<T> for T where
    T: ?Sized
[src]

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

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