pub struct AnalyticsContextManager { /* private fields */ }Expand description
Analytics context manager
Implementations§
Source§impl AnalyticsContextManager
impl AnalyticsContextManager
Sourcepub async fn create_context(&self) -> Arc<AnalyticsContext>
pub async fn create_context(&self) -> Arc<AnalyticsContext>
Create a new analytics context
Sourcepub async fn create_context_with_size(
&self,
max_working_set: u64,
) -> Arc<AnalyticsContext>
pub async fn create_context_with_size( &self, max_working_set: u64, ) -> Arc<AnalyticsContext>
Create a context with specific working set size
Sourcepub async fn get_context(&self, id: u64) -> Option<Arc<AnalyticsContext>>
pub async fn get_context(&self, id: u64) -> Option<Arc<AnalyticsContext>>
Get a context by ID
Sourcepub async fn remove_context(&self, id: u64)
pub async fn remove_context(&self, id: u64)
Remove a context
Sourcepub async fn active_contexts(&self) -> usize
pub async fn active_contexts(&self) -> usize
Get number of active contexts
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for AnalyticsContextManager
impl !RefUnwindSafe for AnalyticsContextManager
impl Send for AnalyticsContextManager
impl Sync for AnalyticsContextManager
impl Unpin for AnalyticsContextManager
impl !UnwindSafe for AnalyticsContextManager
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.