pub struct StyledStatusLine<'a> { /* private fields */ }Available on crate feature
statusline only.Expand description
Builder for creating a styled statusline that looks like rat-salsa’s menu_status2.
This provides a pre-configured statusline with the “Westinghouse” reactor-control aesthetic.
Implementations§
Source§impl<'a> StyledStatusLine<'a>
impl<'a> StyledStatusLine<'a>
pub fn new() -> StyledStatusLine<'a>
pub fn mode(self, mode: OperationalMode) -> StyledStatusLine<'a>
pub fn title(self, title: &'a str) -> StyledStatusLine<'a>
pub fn center_text(self, text: impl Into<String>) -> StyledStatusLine<'a>
pub fn render_metrics(self, count: usize, time_us: u64) -> StyledStatusLine<'a>
pub fn event_metrics(self, count: usize, time_us: u64) -> StyledStatusLine<'a>
pub fn message_count(self, count: u32) -> StyledStatusLine<'a>
pub fn use_slants(self, use_slants: bool) -> StyledStatusLine<'a>
Source§impl<'a> StyledStatusLine<'a>
impl<'a> StyledStatusLine<'a>
pub fn build(self) -> StatusLineStacked<'a>
Trait Implementations§
Source§impl<'a> Default for StyledStatusLine<'a>
impl<'a> Default for StyledStatusLine<'a>
Source§fn default() -> StyledStatusLine<'a>
fn default() -> StyledStatusLine<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for StyledStatusLine<'a>
impl<'a> RefUnwindSafe for StyledStatusLine<'a>
impl<'a> Send for StyledStatusLine<'a>
impl<'a> Sync for StyledStatusLine<'a>
impl<'a> Unpin for StyledStatusLine<'a>
impl<'a> UnsafeUnpin for StyledStatusLine<'a>
impl<'a> UnwindSafe for StyledStatusLine<'a>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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