pub enum ErrorWrite {
NewRun,
Refresh,
}Expand description
Whether a producer’s write is a fresh run or a live refresh.
EP.2/EP.3 (2026-08-10): the two are indistinguishable by looking at
the entries — a language-server republish and a re-run compile can
carry byte-identical lists — so the producer declares which it is
and the host picks ErrorList::set or ErrorList::refresh.
Getting this wrong is user-visible: a refresh that resets snaps someone walking the list back to entry 1 on every keystroke.
Variants§
NewRun
A fresh run — the user asked for new results and expects to start at the top. Compilation always sends this.
Refresh
A live update of an existing feed — keep the user where they were. The language server always sends this, including its first push (an empty list has nothing to anchor to, so it degrades to index 0 anyway).
Trait Implementations§
Source§impl Clone for ErrorWrite
impl Clone for ErrorWrite
Source§fn clone(&self) -> ErrorWrite
fn clone(&self) -> ErrorWrite
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ErrorWrite
Source§impl Debug for ErrorWrite
impl Debug for ErrorWrite
Source§impl<'de> Deserialize<'de> for ErrorWrite
impl<'de> Deserialize<'de> for ErrorWrite
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for ErrorWrite
Source§impl PartialEq for ErrorWrite
impl PartialEq for ErrorWrite
Source§impl Serialize for ErrorWrite
impl Serialize for ErrorWrite
impl StructuralPartialEq for ErrorWrite
Auto Trait Implementations§
impl Freeze for ErrorWrite
impl RefUnwindSafe for ErrorWrite
impl Send for ErrorWrite
impl Sync for ErrorWrite
impl Unpin for ErrorWrite
impl UnsafeUnpin for ErrorWrite
impl UnwindSafe for ErrorWrite
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§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
key and return true if they are equal.