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(&self, s: &'static CStr) -> 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>
pub fn buffering_mode(&self) -> BufferingMode
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl !Send for Context
impl !Sync for Context
impl Unpin 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