pub struct ErrorListFeed { /* private fields */ }Expand description
Handle to the running feed. Dropping it stops the task.
Implementations§
Source§impl ErrorListFeed
impl ErrorListFeed
Sourcepub fn spawn<E, F>(layer: DiagnosticsLayer, enabled: F, emit: E) -> Self
pub fn spawn<E, F>(layer: DiagnosticsLayer, enabled: F, emit: E) -> Self
Spawn the coalescing loop.
emit receives each rebuilt entry set. In production that is an
InboundBus<Vec<ErrorEntry>>::send, whose send bakes in the
async_landed wake — so a republish reaches the screen without
waiting for a keystroke. A bare TickCallback here would
reproduce the “it only updates when I press something” bug class
boot-composition.md §3 exists to design out.
enabled is read every tick rather than captured, so toggling
lsp.diagnostics-to-error-list takes effect without a respawn.
Trait Implementations§
Source§impl Drop for ErrorListFeed
impl Drop for ErrorListFeed
Auto Trait Implementations§
impl Freeze for ErrorListFeed
impl RefUnwindSafe for ErrorListFeed
impl Send for ErrorListFeed
impl Sync for ErrorListFeed
impl Unpin for ErrorListFeed
impl UnsafeUnpin for ErrorListFeed
impl UnwindSafe for ErrorListFeed
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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