pub struct ChatHistory { /* private fields */ }Implementations§
Source§impl ChatHistory
impl ChatHistory
pub fn push(&mut self, message: ChatMessage)
pub fn snapshot(&mut self) -> Vec<ChatMessage>
Trait Implementations§
Source§impl Debug for ChatHistory
impl Debug for ChatHistory
Auto Trait Implementations§
impl Freeze for ChatHistory
impl RefUnwindSafe for ChatHistory
impl Send for ChatHistory
impl Sync for ChatHistory
impl Unpin for ChatHistory
impl UnsafeUnpin for ChatHistory
impl UnwindSafe for ChatHistory
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