pub enum SupplementError {
EmptyName,
AlreadyInstalled,
}Expand description
Why a door could not be added to the program.
Variants§
EmptyName
register_name rejects an empty name, so the door is not emitted.
AlreadyInstalled
This program already contains a door for the same registry name.
Trait Implementations§
Source§impl Clone for SupplementError
impl Clone for SupplementError
impl Copy for SupplementError
Source§impl Debug for SupplementError
impl Debug for SupplementError
Source§impl Display for SupplementError
impl Display for SupplementError
impl Eq for SupplementError
Source§impl Error for SupplementError
impl Error for SupplementError
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 SupplementError
impl PartialEq for SupplementError
impl StructuralPartialEq for SupplementError
Auto Trait Implementations§
impl Forget for SupplementError
impl Freeze for SupplementError
impl Move for SupplementError
impl RefUnwindSafe for SupplementError
impl Send for SupplementError
impl Sync for SupplementError
impl Unpin for SupplementError
impl UnsafeUnpin for SupplementError
impl UnwindSafe for SupplementError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.