pub enum RegistryError {
DuplicateImplementation(ImplId),
DuplicateEnvironment(Ident),
UnknownEnvironment {
id: ImplId,
environment: Ident,
},
Manifest(Error),
Io {
path: String,
source: Error,
},
}Expand description
Why something could not be registered.
Variants§
DuplicateImplementation(ImplId)
Two implementations were given the same name.
DuplicateEnvironment(Ident)
Two environments were given the same name.
UnknownEnvironment
An implementation named an environment that was never introduced.
Manifest(Error)
A manifest could not be read.
Io
A manifest file could not be read from disk.
Trait Implementations§
Source§impl Debug for RegistryError
impl Debug for RegistryError
Source§impl Display for RegistryError
impl Display for RegistryError
Source§impl Error for RegistryError
impl Error for RegistryError
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 RegistryError
impl !UnwindSafe for RegistryError
impl Forget for RegistryError
impl Freeze for RegistryErrorwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ErrorImpl is !null: Freeze,
PhantomData<ErrorImpl>: Freeze,
*const () is !null: Freeze,
PhantomData<ErrorData<CustomOwner>>: Freeze,
impl Move for RegistryError
impl Send for RegistryError
impl Sync for RegistryError
impl Unpin for RegistryError
impl UnsafeUnpin for RegistryErrorwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ErrorImpl is !null: UnsafeUnpin,
PhantomData<ErrorImpl>: UnsafeUnpin,
*const () is !null: UnsafeUnpin,
PhantomData<ErrorData<CustomOwner>>: UnsafeUnpin,
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