pub struct LogSnapshot { /* private fields */ }Expand description
Immutable shared view of retained log records, ordered oldest to newest.
Implementations§
Source§impl LogSnapshot
impl LogSnapshot
Sourcepub fn iter(&self) -> impl DoubleEndedIterator<Item = &LogRecord>
pub fn iter(&self) -> impl DoubleEndedIterator<Item = &LogRecord>
Iterates over retained records without cloning them.
Trait Implementations§
Source§impl Clone for LogSnapshot
impl Clone for LogSnapshot
Source§fn clone(&self) -> LogSnapshot
fn clone(&self) -> LogSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LogSnapshot
impl Debug for LogSnapshot
Source§impl Default for LogSnapshot
impl Default for LogSnapshot
Source§fn default() -> LogSnapshot
fn default() -> LogSnapshot
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LogSnapshot
impl RefUnwindSafe for LogSnapshot
impl Send for LogSnapshot
impl Sync for LogSnapshot
impl Unpin for LogSnapshot
impl UnsafeUnpin for LogSnapshot
impl UnwindSafe for LogSnapshot
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