pub enum ReachReason {
Credential,
HiddenPeer,
OutsideWorkspace,
}Expand description
Why a not-auto-approved command’s path reach was flagged — so the nudge can explain the actual reason instead of a one-size-fits-all “outside the working directory”. A peer’s hidden file and a path genuinely above cwd both deny, but the remedy differs, and conflating them is what reads as “directory parsing is broken”.
Variants§
Credential
A known credential store (.ssh, .aws, keychain…).
HiddenPeer
A HIDDEN file inside a co-located peer project — the peer’s ordinary source is readable as
adjacent, but its dotfiles/dotdirs are shielded.
OutsideWorkspace
Genuinely above/outside the working directory.
Implementations§
Trait Implementations§
Source§impl Clone for ReachReason
impl Clone for ReachReason
Source§fn clone(&self) -> ReachReason
fn clone(&self) -> ReachReason
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 ReachReason
Source§impl Debug for ReachReason
impl Debug for ReachReason
impl Eq for ReachReason
Source§impl PartialEq for ReachReason
impl PartialEq for ReachReason
impl StructuralPartialEq for ReachReason
Auto Trait Implementations§
impl Freeze for ReachReason
impl RefUnwindSafe for ReachReason
impl Send for ReachReason
impl Sync for ReachReason
impl Unpin for ReachReason
impl UnsafeUnpin for ReachReason
impl UnwindSafe for ReachReason
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.