pub struct MessageManager {
pub messages: Vec<Message>,
pub scroll_state: ScrollState,
/* private fields */
}Fields§
§messages: Vec<Message>§scroll_state: ScrollStateImplementations§
Source§impl MessageManager
impl MessageManager
Sourcepub fn update_config(&mut self, new_config: &Config)
pub fn update_config(&mut self, new_config: &Config)
✅ NEU: UPDATE METHOD für Live-Changes
pub fn clear_messages(&mut self)
pub fn get_content_height(&self) -> usize
pub fn get_messages(&self) -> Vec<(&String, usize)>
pub fn add_message(&mut self, content: String)
pub fn handle_scroll(&mut self, action: KeyAction, window_height: usize)
pub fn get_visible_messages(&self) -> Vec<(&String, usize)>
Sourcepub fn update_typewriter(&mut self)
pub fn update_typewriter(&mut self)
✅ HAUPTFIX: Typewriter Update nur wenn delay > 0
pub fn log(&mut self, level: &str, message: &str)
Auto Trait Implementations§
impl Freeze for MessageManager
impl RefUnwindSafe for MessageManager
impl Send for MessageManager
impl Sync for MessageManager
impl Unpin for MessageManager
impl UnwindSafe for MessageManager
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> 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