pub struct SetWindowTitleMsg(pub String);Expand description
A message to set the terminal window title.
This message updates the terminal window’s title bar with the provided string. Not all terminals support this feature.
§Examples
use bubbletea_rs::event::SetWindowTitleMsg;
// Set a custom window title
let msg = SetWindowTitleMsg("My App - Document.txt".to_string());§Platform Support
- Unix/Linux: Generally supported in most terminal emulators
- macOS: Supported in Terminal.app and iTerm2
- Windows: Supported in Windows Terminal and newer console hosts
Tuple Fields§
§0: StringTrait Implementations§
Source§impl Clone for SetWindowTitleMsg
impl Clone for SetWindowTitleMsg
Source§fn clone(&self) -> SetWindowTitleMsg
fn clone(&self) -> SetWindowTitleMsg
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SetWindowTitleMsg
impl RefUnwindSafe for SetWindowTitleMsg
impl Send for SetWindowTitleMsg
impl Sync for SetWindowTitleMsg
impl Unpin for SetWindowTitleMsg
impl UnwindSafe for SetWindowTitleMsg
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