pub enum HeaderlineStatus {
Idle,
InProgress {
label: String,
count: Option<usize>,
emphasis: Option<String>,
},
Complete {
summary: String,
emphasis: Option<String>,
},
Failed {
reason: String,
},
}Expand description
View-level headerline status. Rendered above the first
excerpt (M.2.a MultibufferExcerptHeaderProvider extends to handle
the view header in a later renderer slice).
Async providers transition Idle → InProgress → Complete /
Failed as their scan progresses. See
multibuffer-views.md §3.7.
Variants§
Idle
No status rendered. The view-header virtual row is empty.
InProgress
A scan / fetch / computation is running. label describes
it; count is an optional running tally (hits found so
far, files scanned, etc.). emphasis is an optional
substring of label (e.g. the search query) that the
renderer paints with the multibuffer.status.query accent
role so it stands out; providers with nothing to emphasise
pass None.
Complete
The operation completed successfully. summary is the
terminal label rendered to the user. emphasis is an
optional substring of summary painted with the accent
role (see HeaderlineStatus::InProgress).
Failed
The operation failed. reason is the terminal label
rendered to the user.
Trait Implementations§
Source§impl Clone for HeaderlineStatus
impl Clone for HeaderlineStatus
Source§fn clone(&self) -> HeaderlineStatus
fn clone(&self) -> HeaderlineStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for HeaderlineStatus
impl Debug for HeaderlineStatus
Source§impl Default for HeaderlineStatus
impl Default for HeaderlineStatus
Source§fn default() -> HeaderlineStatus
fn default() -> HeaderlineStatus
impl Eq for HeaderlineStatus
Source§impl PartialEq for HeaderlineStatus
impl PartialEq for HeaderlineStatus
impl StructuralPartialEq for HeaderlineStatus
Auto Trait Implementations§
impl Freeze for HeaderlineStatus
impl RefUnwindSafe for HeaderlineStatus
impl Send for HeaderlineStatus
impl Sync for HeaderlineStatus
impl Unpin for HeaderlineStatus
impl UnsafeUnpin for HeaderlineStatus
impl UnwindSafe for HeaderlineStatus
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<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.§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> ⓘ
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> ⓘ
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