pub enum ModuleRegistryError {
EmptyModuleName,
EmptyOwner {
module: String,
},
DuplicateModuleName {
name: String,
},
DuplicateOwner {
owner: String,
},
DuplicateDomain {
module: String,
domain: String,
},
DuplicateSupportedLanguage {
module: String,
language: LanguageIdentifier,
},
DuplicateNamespace {
module: String,
domain: String,
namespace: String,
},
InvalidNamespace {
module: String,
domain: String,
namespace: String,
details: NamespacePathError,
},
}Expand description
Validation failures for a discovered module registry.
Variants§
EmptyModuleName
A module has an empty name.
EmptyOwner
A module has an empty owner.
DuplicateModuleName
A module name appears more than once.
DuplicateOwner
An owner appears more than once.
DuplicateDomain
A module declares the same package-local domain more than once.
DuplicateSupportedLanguage
A module declares the same language more than once.
DuplicateNamespace
A module declares the same namespace more than once.
InvalidNamespace
A namespace entry is malformed.
Trait Implementations§
Source§impl Clone for ModuleRegistryError
impl Clone for ModuleRegistryError
Source§impl Debug for ModuleRegistryError
impl Debug for ModuleRegistryError
Source§impl Display for ModuleRegistryError
impl Display for ModuleRegistryError
impl Eq for ModuleRegistryError
Source§impl Error for ModuleRegistryError
impl Error for ModuleRegistryError
1.30.0 · 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 PartialEq for ModuleRegistryError
impl PartialEq for ModuleRegistryError
impl StructuralPartialEq for ModuleRegistryError
Auto Trait Implementations§
impl Freeze for ModuleRegistryError
impl RefUnwindSafe for ModuleRegistryError
impl Send for ModuleRegistryError
impl Sync for ModuleRegistryError
impl Unpin for ModuleRegistryError
impl UnsafeUnpin for ModuleRegistryError
impl UnwindSafe for ModuleRegistryError
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