pub struct Diagnostics { /* private fields */ }
Implementations§
Source§impl Diagnostics
impl Diagnostics
pub fn new(event_logger: Arc<EventLogger>, sdk_key: &str) -> Self
pub fn set_context(&self, context: &ContextType)
pub fn get_markers(&self, context_type: &ContextType) -> Option<Vec<Marker>>
pub fn add_marker(&self, context_type: Option<&ContextType>, marker: Marker)
pub fn clear_markers(&self, context_type: &ContextType)
pub fn enqueue_diagnostics_event( &self, context_type: Option<&ContextType>, key: Option<KeyType>, )
pub fn should_sample(&self, context: &ContextType, key: Option<KeyType>) -> bool
Auto Trait Implementations§
impl !Freeze for Diagnostics
impl !RefUnwindSafe for Diagnostics
impl Send for Diagnostics
impl Sync for Diagnostics
impl Unpin for Diagnostics
impl !UnwindSafe for Diagnostics
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