#[non_exhaustive]pub enum MrBundleError {
IoError(String, Error),
MissingResources(Vec<ResourceIdentifier>),
UnusedResources(Vec<ResourceIdentifier>),
MsgpackEncodeError(Error),
MsgpackDecodeError(String, Error),
YamlError(Error),
ParentlessPath(PathBuf),
DirectoryExists(PathBuf),
}Expand description
Any error which can occur in this crate
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
IoError(String, Error)
An IO error
MissingResources(Vec<ResourceIdentifier>)
A manifest references resources that were not provided when attempting to create a bundle.
UnusedResources(Vec<ResourceIdentifier>)
Resources were provided when attempting to create a bundle that were not referenced in the manifest.
MsgpackEncodeError(Error)
A messagepack encoding error
MsgpackDecodeError(String, Error)
A messagepack decoding error
YamlError(Error)
Available on crate feature
fs only.A YAML error
ParentlessPath(PathBuf)
Available on crate feature
fs only.A path with no parent directory
DirectoryExists(PathBuf)
Available on crate feature
fs only.A target directory already exists
Trait Implementations§
Source§impl Debug for MrBundleError
impl Debug for MrBundleError
Source§impl Display for MrBundleError
impl Display for MrBundleError
Source§impl Error for MrBundleError
impl Error for MrBundleError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<Error> for MrBundleError
impl From<Error> for MrBundleError
Auto Trait Implementations§
impl !RefUnwindSafe for MrBundleError
impl !UnwindSafe for MrBundleError
impl Freeze for MrBundleError
impl Send for MrBundleError
impl Sync for MrBundleError
impl Unpin for MrBundleError
impl UnsafeUnpin for MrBundleError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more