Struct fuchsia_trace::TraceCategoryContext
source · pub struct TraceCategoryContext { /* private fields */ }
Expand description
RAII wrapper for a trace context for a specific category.
Implementations§
source§impl TraceCategoryContext
impl TraceCategoryContext
pub fn acquire(category: &'static CStr) -> Option<TraceCategoryContext>
pub fn register_string_literal(&self, name: &'static CStr) -> trace_string_ref_t
pub fn write_instant( &self, name_ref: trace_string_ref_t, scope: Scope, args: &[Arg<'_>] )
pub fn write_instant_with_inline_name( &self, name: &str, scope: Scope, args: &[Arg<'_>] )
pub fn write_duration_with_inline_name( &self, name: &str, start_time: zx_ticks_t, args: &[Arg<'_>] )
pub fn write_duration_begin_with_inline_name( &self, name: &str, args: &[Arg<'_>] )
pub fn write_duration_end_with_inline_name(&self, name: &str, args: &[Arg<'_>])
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for TraceCategoryContext
impl !Send for TraceCategoryContext
impl !Sync for TraceCategoryContext
impl Unpin for TraceCategoryContext
impl UnwindSafe for TraceCategoryContext
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