pub(crate) struct IndexProjectMismatch {
pub(crate) status: IndexReadStatus,
pub(crate) worktree: Option<String>,
pub(crate) selected_project_root: Option<String>,
pub(crate) indexed_project_root: Option<String>,
diagnostic: Option<String>,
}Expand description
Typed refusal when a selected project root and durable index disagree.
Fields§
§status: IndexReadStatusStable project binding state for adapters.
worktree: Option<String>Registered alias when one selected this project.
selected_project_root: Option<String>Lossless UTF-8 display of the canonical root selected for this read.
None means that the native identity is valid but has no UTF-8 display
projection. Adapters must not use this field as identity authority.
indexed_project_root: Option<String>Lossless UTF-8 display of the canonical root recorded by the opened index.
None means that the native identity is valid but has no UTF-8 display
projection. Adapters must not use this field as identity authority.
diagnostic: Option<String>Terminal-only diagnostic retained when a lower layer supplied lossy text.
Implementations§
Source§impl IndexProjectMismatch
impl IndexProjectMismatch
Sourcepub(crate) fn from_native_roots(
selected: &CanonicalProjectRoot,
indexed: &CanonicalProjectRoot,
) -> Self
pub(crate) fn from_native_roots( selected: &CanonicalProjectRoot, indexed: &CanonicalProjectRoot, ) -> Self
Build adapter fields from native identities without lossy conversion.
Trait Implementations§
Source§impl Clone for IndexProjectMismatch
impl Clone for IndexProjectMismatch
Source§fn clone(&self) -> IndexProjectMismatch
fn clone(&self) -> IndexProjectMismatch
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 moreSource§impl Debug for IndexProjectMismatch
impl Debug for IndexProjectMismatch
Source§impl Display for IndexProjectMismatch
impl Display for IndexProjectMismatch
impl Eq for IndexProjectMismatch
Source§impl PartialEq for IndexProjectMismatch
impl PartialEq for IndexProjectMismatch
Source§fn eq(&self, other: &IndexProjectMismatch) -> bool
fn eq(&self, other: &IndexProjectMismatch) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for IndexProjectMismatch
impl Serialize for IndexProjectMismatch
impl StructuralPartialEq for IndexProjectMismatch
Auto Trait Implementations§
impl Freeze for IndexProjectMismatch
impl RefUnwindSafe for IndexProjectMismatch
impl Send for IndexProjectMismatch
impl Sync for IndexProjectMismatch
impl Unpin for IndexProjectMismatch
impl UnsafeUnpin for IndexProjectMismatch
impl UnwindSafe for IndexProjectMismatch
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.§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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of [
ToCompactString::to_compact_string()] Read more§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a [
CompactString]. Read more