Struct EvictedDocument Copy item path Source pub struct EvictedDocument {
pub path: PathBuf ,
pub uri: Uri ,
pub synced_servers: Vec <ServerId >,
}Expand description A document evicted by DocumentTracker::open ’s LRU eviction (#495).
Carries the servers whose textDocument/didOpen/didChange it had
received. DocumentTracker itself has no access to any server’s
LspClient –
that registry lives one layer up, in Translator – so it cannot send
textDocument/didClose itself. Instead, DocumentTracker::take_evicted
hands these back to a caller that does have that access, which must send
each of synced_servers a textDocument/didClose for uri, or that
server’s own open-document set keeps growing even though mcpls’s own
tracking evicted the entry.
Filesystem path of the evicted document.
URI of the evicted document, as sent to any server that had it open.
Servers that had this document open, each needing a
textDocument/didClose now that mcpls itself has evicted it.
Performs copy-assignment from
source.
Read more Formats the value using the given formatter.
Read more Immutably borrows from an owned value.
Read more Mutably borrows from an owned value.
Read more 🔬 This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from
self to
dest.
Read more Returns the argument unchanged.
Converts to this type from a reference to the input type.
Instruments this type with the provided
Span, returning an
Instrumented wrapper.
Read more Calls U::from(self).
That is, this conversion is whatever the implementation of
From <T> for U chooses to do.
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer.
Read more Mutably dereferences the given pointer.
Read more Drops the object pointed to by the given pointer.
Read more The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more Uses borrowed data to replace owned data, usually by cloning.
Read more The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.