pub enum SelectionPolicy {
PreferLockThenLatest,
LatestOnly,
}Expand description
How a chosen version relates to the lock.
Variants§
PreferLockThenLatest
Use the locked version when it is allowed; otherwise the newest allowed.
LatestOnly
The newest allowed version, ignoring the lock.
Trait Implementations§
Source§impl Clone for SelectionPolicy
impl Clone for SelectionPolicy
impl Copy for SelectionPolicy
Source§impl Debug for SelectionPolicy
impl Debug for SelectionPolicy
impl Eq for SelectionPolicy
Source§impl PartialEq for SelectionPolicy
impl PartialEq for SelectionPolicy
impl StructuralPartialEq for SelectionPolicy
Auto Trait Implementations§
impl Freeze for SelectionPolicy
impl RefUnwindSafe for SelectionPolicy
impl Send for SelectionPolicy
impl Sync for SelectionPolicy
impl Unpin for SelectionPolicy
impl UnsafeUnpin for SelectionPolicy
impl UnwindSafe for SelectionPolicy
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.