pub struct Msg<'a, T: 'static + Message> { /* private fields */ }Implementations§
Methods from Deref<Target = Messages<T>>§
Sourcepub fn iter_current(&self) -> MessagesIterator<'_, M> ⓘ
pub fn iter_current(&self) -> MessagesIterator<'_, M> ⓘ
Returns an iterator over the current frame’s messages.
Sourcepub fn iter_previous(&self) -> MessagesIterator<'_, M> ⓘ
pub fn iter_previous(&self) -> MessagesIterator<'_, M> ⓘ
Returns an iterator over the previous frame’s messages.
Sourcepub fn len_current(&self) -> usize
pub fn len_current(&self) -> usize
Returns the number of messages in the current frame.
Sourcepub fn len_previous(&self) -> usize
pub fn len_previous(&self) -> usize
Returns the number of messages in the previous frame.
Sourcepub fn is_empty_current(&self) -> bool
pub fn is_empty_current(&self) -> bool
Checks if there are no messages in the current frame.
Sourcepub fn is_empty_previous(&self) -> bool
pub fn is_empty_previous(&self) -> bool
Checks if there are no messages in the previous frame.
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for Msg<'a, T>
impl<'a, T> RefUnwindSafe for Msg<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for Msg<'a, T>
impl<'a, T> Sync for Msg<'a, T>
impl<'a, T> Unpin for Msg<'a, T>
impl<'a, T> UnwindSafe for Msg<'a, T>where
T: RefUnwindSafe,
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