pub enum RegistryError<K, D: Protocol> {
AlreadyBound {
key: K,
recipient: Recipient<D>,
current: Recipient<D>,
},
NotBound {
key: K,
recipient: Recipient<D>,
},
StaleBinding {
key: K,
recipient: Recipient<D>,
current: Recipient<D>,
},
}Expand description
A rejected registry mutation.
Variants§
AlreadyBound
A different recipient already owns the key.
Fields
§
key: KRejected key.
NotBound
Unbinding named an absent key.
StaleBinding
Unbinding named a recipient other than the current binding.
Trait Implementations§
Source§impl<K: Clone, D: Clone + Protocol> Clone for RegistryError<K, D>
impl<K: Clone, D: Clone + Protocol> Clone for RegistryError<K, D>
Source§fn clone(&self) -> RegistryError<K, D>
fn clone(&self) -> RegistryError<K, D>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<K, D: Protocol> Display for RegistryError<K, D>
impl<K, D: Protocol> Display for RegistryError<K, D>
Source§impl<K, D: Protocol> Error for RegistryError<K, D>
impl<K, D: Protocol> Error for RegistryError<K, D>
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()
impl<K: Eq, D: Eq + Protocol> Eq for RegistryError<K, D>
impl<K, D: Protocol> StructuralPartialEq for RegistryError<K, D>
Auto Trait Implementations§
impl<K, D> Freeze for RegistryError<K, D>
impl<K, D> RefUnwindSafe for RegistryError<K, D>
impl<K, D> Send for RegistryError<K, D>
impl<K, D> Sync for RegistryError<K, D>
impl<K, D> Unpin for RegistryError<K, D>
impl<K, D> UnsafeUnpin for RegistryError<K, D>
impl<K, D> UnwindSafe for RegistryError<K, D>
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