pub struct DisplayMessage { /* private fields */ }Expand description
Typed arguments for the broad display-message flag family.
Implementations§
Source§impl DisplayMessage
impl DisplayMessage
Sourcepub fn message(self, message: impl Into<OsString>) -> Self
pub fn message(self, message: impl Into<OsString>) -> Self
Sets the message or format expression.
Sourcepub const fn print(self, enabled: bool) -> Self
pub const fn print(self, enabled: bool) -> Self
Prints expanded output rather than rendering to the status line.
Sourcepub const fn all_formats(self, enabled: bool) -> Self
pub const fn all_formats(self, enabled: bool) -> Self
Lists all format variables.
Sourcepub const fn literal(self, enabled: bool) -> Self
pub const fn literal(self, enabled: bool) -> Self
Prevents format expansion. Requires tmux 3.4+.
Sourcepub fn client(self, client: ClientName) -> Self
pub fn client(self, client: ClientName) -> Self
Targets a client.
Sourcepub const fn delay_millis(self, delay: u32) -> Self
pub const fn delay_millis(self, delay: u32) -> Self
Sets the status-line display duration.
Trait Implementations§
Source§impl Clone for DisplayMessage
impl Clone for DisplayMessage
Source§impl Debug for DisplayMessage
impl Debug for DisplayMessage
Auto Trait Implementations§
impl Freeze for DisplayMessage
impl RefUnwindSafe for DisplayMessage
impl Send for DisplayMessage
impl Sync for DisplayMessage
impl Unpin for DisplayMessage
impl UnsafeUnpin for DisplayMessage
impl UnwindSafe for DisplayMessage
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