pub enum SparseAssetResourcePlanError {
ReadAssetsRoot {
path: PathBuf,
source: Error,
},
ReadAssetsRootEntry {
path: PathBuf,
source: Error,
},
ReadNamespaceDirectory {
path: PathBuf,
source: Error,
},
ReadNamespaceDirectoryEntry {
path: PathBuf,
source: Error,
},
NonUtf8LocaleDirectory {
path: PathBuf,
},
InvalidLocaleDirectory {
raw_name: String,
path: PathBuf,
details: CanonicalLanguageIdentifierError,
},
NamespaceRelativePath {
path: PathBuf,
root: PathBuf,
source: StripPrefixError,
},
NonUtf8NamespacePath {
path: PathBuf,
},
InvalidNamespace {
namespace: String,
domain: String,
details: NamespacePathError,
},
}Expand description
Errors produced while discovering sparse resource plans from an assets tree.
Variants§
ReadAssetsRoot
The locale assets root could not be read.
ReadAssetsRootEntry
A directory entry under the locale assets root could not be read.
ReadNamespaceDirectory
A namespace directory could not be read.
ReadNamespaceDirectoryEntry
A namespace directory entry could not be read.
NonUtf8LocaleDirectory
A locale directory name is not UTF-8.
InvalidLocaleDirectory
A locale directory is not a valid canonical BCP-47 language identifier.
Fields
§
details: CanonicalLanguageIdentifierErrorLanguage parsing details.
NamespaceRelativePath
A namespace path could not be made relative to the namespace root.
Fields
§
source: StripPrefixErrorRelative path error details.
NonUtf8NamespacePath
A namespace path contains a non-UTF-8 component.
InvalidNamespace
A discovered namespace is not a canonical namespace path.
Trait Implementations§
Source§impl Debug for SparseAssetResourcePlanError
impl Debug for SparseAssetResourcePlanError
Source§impl Error for SparseAssetResourcePlanError
impl Error for SparseAssetResourcePlanError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for SparseAssetResourcePlanError
impl !UnwindSafe for SparseAssetResourcePlanError
impl Freeze for SparseAssetResourcePlanError
impl Send for SparseAssetResourcePlanError
impl Sync for SparseAssetResourcePlanError
impl Unpin for SparseAssetResourcePlanError
impl UnsafeUnpin for SparseAssetResourcePlanError
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