Enum keeshond_datapack::DataError [−][src]
pub enum DataError {
PackageNotFound,
SourceNotTrusted,
DataNotFound,
BadName,
BadSource,
NotSupported,
PackageSourceError(PackageError),
IoError(Error),
BadData(String),
}
Expand description
Return type when failing to load a DataObject from a DataStore
Variants
The given package was not found in the source::Source
The given package is not trusted by the source::Source
The package is loaded, but has no DataObject by the given pathname
An invalid character (forward slash) was used in a package or type folder name
An invalid source ID was specified
The operation is not supported by this implementation
PackageSourceError(PackageError)
An error occurred while accessing a package’s source from the source::Source
Tuple Fields of PackageSourceError
0: PackageError
IoError(Error)
An error of type std::io::Error occurred.
Tuple Fields of IoError
0: Error
BadData(String)
A logical error occurred while reading a DataObject
Tuple Fields of BadData
0: String
Trait Implementations
Performs the conversion.