pub enum AutoRegister {
Enabled,
Disabled,
}Expand description
Whether a resolver may persist a newly auto-detected project to the registry.
Auto-registration is a side effect on the user’s global config, so it is opt-in per command rather than a property of resolution itself.
Variants§
Enabled
Write-intent command (grove start, grove worktree new, grove env set,
grove env unset): persist a newly discovered project.
Disabled
Read-only command (grove env list, grove env export, grove worktree list):
resolve without touching the registry. grove env export in particular runs on
every directory change under the mise integration, so plain cd must never
mutate persistent state.
Implementations§
Source§impl AutoRegister
impl AutoRegister
fn is_enabled(self) -> bool
Trait Implementations§
Source§impl Clone for AutoRegister
impl Clone for AutoRegister
Source§fn clone(&self) -> AutoRegister
fn clone(&self) -> AutoRegister
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 AutoRegister
Source§impl Debug for AutoRegister
impl Debug for AutoRegister
impl Eq for AutoRegister
Source§impl PartialEq for AutoRegister
impl PartialEq for AutoRegister
Source§fn eq(&self, other: &AutoRegister) -> bool
fn eq(&self, other: &AutoRegister) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AutoRegister
Auto Trait Implementations§
impl Freeze for AutoRegister
impl RefUnwindSafe for AutoRegister
impl Send for AutoRegister
impl Sync for AutoRegister
impl Unpin for AutoRegister
impl UnsafeUnpin for AutoRegister
impl UnwindSafe for AutoRegister
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
Checks if this value is equivalent to the given key. Read more
§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.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more