pub struct Context { /* private fields */ }Expand description
RAII wrapper for trace contexts without a specific associated category.
Implementations§
Source§impl Context
impl Context
pub fn acquire() -> Option<Self>
pub fn register_string_literal<T: CategoryString>( &self, s: T, ) -> trace_string_ref_t
pub fn write_blob_record( &self, type_: c_int, name_ref: &trace_string_ref_t, data: &[u8], )
pub fn copy_record(&self, buffer: &[u64]) -> Option<usize>
Sourcepub fn mark_records_dropped(&self, count: usize)
pub fn mark_records_dropped(&self, count: usize)
Records that count trace records were dropped before they could be written to the
trace buffer.
pub fn buffering_mode(&self) -> BufferingMode
Trait Implementations§
Auto Trait Implementations§
impl !Send for Context
impl !Sync for Context
impl Freeze for Context
impl RefUnwindSafe for Context
impl Unpin for Context
impl UnsafeUnpin for Context
impl UnwindSafe for Context
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