pub enum Observed<P> {
Known(P),
Unknown(String),
}Expand description
A permission read from a forge, which may be one this tool cannot set.
Variants§
Known(P)
A permission the configuration can also declare.
Unknown(String)
Any other permission, kept as the forge spelled it.
Implementations§
Trait Implementations§
impl<P: Eq> Eq for Observed<P>
impl<P: PartialEq> StructuralPartialEq for Observed<P>
Auto Trait Implementations§
impl<P> Freeze for Observed<P>where
P: Freeze,
impl<P> RefUnwindSafe for Observed<P>where
P: RefUnwindSafe,
impl<P> Send for Observed<P>where
P: Send,
impl<P> Sync for Observed<P>where
P: Sync,
impl<P> Unpin for Observed<P>where
P: Unpin,
impl<P> UnsafeUnpin for Observed<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for Observed<P>where
P: UnwindSafe,
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.