pub struct ScopeState {
pub id: ScopeId,
pub name: &'static str,
pub started_at: Instant,
pub started_at_nanos: u128,
pub records: Mutex<Vec<MinimalSpanRecord>>,
pub batch_threshold: usize,
pub closed: AtomicBool,
pub sink: Arc<dyn ProfilerSink>,
pub interner: OnceLock<Arc<DimInterner>>,
}Fields§
§id: ScopeId§name: &'static str§started_at: Instant§started_at_nanos: u128§records: Mutex<Vec<MinimalSpanRecord>>§batch_threshold: usize§closed: AtomicBool§sink: Arc<dyn ProfilerSink>§interner: OnceLock<Arc<DimInterner>>Implementations§
Source§impl ScopeState
impl ScopeState
pub fn push(&self, rec: MinimalSpanRecord)
pub fn attach_interner(&self, interner: Arc<DimInterner>)
Auto Trait Implementations§
impl !Freeze for ScopeState
impl !RefUnwindSafe for ScopeState
impl !UnwindSafe for ScopeState
impl Send for ScopeState
impl Sync for ScopeState
impl Unpin for ScopeState
impl UnsafeUnpin for ScopeState
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
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more