pub struct DebugSession { /* private fields */ }Expand description
A session for grouping related debug insertions.
Use this to ensure all debug logs inserted together share the same session ID, making it easy to remove them all at once.
Implementations§
Source§impl DebugSession
impl DebugSession
Sourcepub fn marker(&self) -> DebugMarker
pub fn marker(&self) -> DebugMarker
Create a marker for this session.
Sourcepub fn marker_with_desc(&self, description: impl Into<String>) -> DebugMarker
pub fn marker_with_desc(&self, description: impl Into<String>) -> DebugMarker
Create a marker with a description for this session.
Trait Implementations§
Source§impl Clone for DebugSession
impl Clone for DebugSession
Source§fn clone(&self) -> DebugSession
fn clone(&self) -> DebugSession
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 DebugSession
impl Debug for DebugSession
Auto Trait Implementations§
impl Freeze for DebugSession
impl RefUnwindSafe for DebugSession
impl Send for DebugSession
impl Sync for DebugSession
impl Unpin for DebugSession
impl UnsafeUnpin for DebugSession
impl UnwindSafe for DebugSession
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