[][src]Enum keeshond_datapack::DataError

pub enum DataError {
    PackageNotFound,
    SourceNotTrusted,
    DataNotFound,
    BadName,
    BadSource,
    NotSupported,
    PackageSourceError(PackageError),
    IoError(Error),
    BadData(String),
}

Return type when failing to load a DataObject from a DataStore

Variants

PackageNotFound

The given package was not found in the source::Source

SourceNotTrusted

The given package is not trusted by the source::Source

DataNotFound

The package is loaded, but has no DataObject by the given pathname

BadName

An invalid character (forward slash) was used in a package or type folder name

BadSource

An invalid source ID was specified

NotSupported

The operation is not supported by this implementation

PackageSourceError(PackageError)

An error occurred while accessing a package's source from the source::Source

IoError(Error)

An error of type std::io::Error occurred.

BadData(String)

A logical error occurred while reading a DataObject

Trait Implementations

impl Debug for DataError[src]

impl Display for DataError[src]

impl Fail for DataError[src]

impl From<Error> for DataError[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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

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

type Output = T

Should always be Self

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.