pub enum ComponentRegistryError {
DuplicateId(ComponentId),
DuplicateName(&'static str),
}Expand description
Component registry error.
Variants§
DuplicateId(ComponentId)
Component id is already registered.
DuplicateName(&'static str)
Component name is already registered.
Trait Implementations§
Source§impl Clone for ComponentRegistryError
impl Clone for ComponentRegistryError
Source§fn clone(&self) -> ComponentRegistryError
fn clone(&self) -> ComponentRegistryError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ComponentRegistryError
impl Debug for ComponentRegistryError
Source§impl Display for ComponentRegistryError
impl Display for ComponentRegistryError
impl Eq for ComponentRegistryError
Source§impl Error for ComponentRegistryError
impl Error for ComponentRegistryError
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 ComponentRegistryError
impl PartialEq for ComponentRegistryError
impl StructuralPartialEq for ComponentRegistryError
Auto Trait Implementations§
impl Freeze for ComponentRegistryError
impl RefUnwindSafe for ComponentRegistryError
impl Send for ComponentRegistryError
impl Sync for ComponentRegistryError
impl Unpin for ComponentRegistryError
impl UnsafeUnpin for ComponentRegistryError
impl UnwindSafe for ComponentRegistryError
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