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
IoError(Error)
An error of type std::io::Error occurred.
BadData(String)
A logical error occurred while reading a DataObject
Trait Implementations
impl Fail for DataError
[src]
impl Fail for DataError
[src]fn cause(&self) -> Option<&dyn Fail>
[src]
fn cause(&self) -> Option<&dyn Fail>
[src]Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]Returns a reference to the Backtrace
carried by this failure, if it
carries one. Read more
Auto Trait Implementations
impl !RefUnwindSafe for DataError
impl Send for DataError
impl Sync for DataError
impl Unpin for DataError
impl !UnwindSafe for DataError
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more