pub struct UserMessages {
pub messages: VecDeque<UserMessage>,
/* private fields */
}Fields§
§messages: VecDeque<UserMessage>Implementations§
Source§impl UserMessages
impl UserMessages
pub fn error_report_to_developer(&mut self, message: &'static str)
pub fn add_message(&mut self, message: impl Into<String>, level: Level)
pub fn remove_messages_till(&mut self, id: u64)
pub fn remove_all_messages(&mut self)
Trait Implementations§
Source§impl Clone for UserMessages
impl Clone for UserMessages
Source§fn clone(&self) -> UserMessages
fn clone(&self) -> UserMessages
Returns a copy 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 moreSource§impl Debug for UserMessages
impl Debug for UserMessages
Source§impl Default for UserMessages
impl Default for UserMessages
Source§fn default() -> UserMessages
fn default() -> UserMessages
Returns the “default value” for a type. Read more
Source§impl From<UserMessages> for UiUserMessages
impl From<UserMessages> for UiUserMessages
Source§fn from(value: UserMessages) -> Self
fn from(value: UserMessages) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UserMessages
impl RefUnwindSafe for UserMessages
impl Send for UserMessages
impl Sync for UserMessages
impl Unpin for UserMessages
impl UnwindSafe for UserMessages
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