#[non_exhaustive]pub enum AddTargetCause {
KeyInUse,
AccessNotCovered {
declared: Access,
actual: Access,
},
}Expand description
Why an add_target was refused (DI-13.10).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
KeyInUse
A target is already present under the key.
AccessNotCovered
The key declared more access than the target states: a Key<ReadWrite> for a target that
can only be read, for one. A key that declares less is accepted.
Trait Implementations§
Source§impl Clone for AddTargetCause
impl Clone for AddTargetCause
Source§fn clone(&self) -> AddTargetCause
fn clone(&self) -> AddTargetCause
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 moreimpl Copy for AddTargetCause
Source§impl Debug for AddTargetCause
impl Debug for AddTargetCause
Source§impl Display for AddTargetCause
impl Display for AddTargetCause
impl Eq for AddTargetCause
Source§impl PartialEq for AddTargetCause
impl PartialEq for AddTargetCause
impl StructuralPartialEq for AddTargetCause
Auto Trait Implementations§
impl Freeze for AddTargetCause
impl RefUnwindSafe for AddTargetCause
impl Send for AddTargetCause
impl Sync for AddTargetCause
impl Unpin for AddTargetCause
impl UnsafeUnpin for AddTargetCause
impl UnwindSafe for AddTargetCause
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