pub struct QueryDiagnostics { /* private fields */ }Implementations§
Source§impl QueryDiagnostics
impl QueryDiagnostics
Sourcepub fn new(io_timing: Arc<AtomicBool>) -> Self
pub fn new(io_timing: Arc<AtomicBool>) -> Self
All invocation and retained-worker collectors read the setting published by the owning session’s state transitions.
pub fn io_timing(&self) -> bool
Sourcepub fn io_context(&self) -> IOContext
pub fn io_context(&self) -> IOContext
Select this session’s active operation, including an explicit worker request. A different session on the same thread never inherits its I/O counters.
pub fn capture(&self) -> Option<CapturedDiagnostics>
Sourcepub fn bind_current(&self) -> StorageBackendResult<Option<CapturedScope>>
pub fn bind_current(&self) -> StorageBackendResult<Option<CapturedScope>>
Bind inherited worker state before executing expressions or host callbacks.
pub fn request(&self) -> InvocationRequest
Sourcepub fn request_with_control(
&self,
control: StorageReadControl,
) -> InvocationRequest
pub fn request_with_control( &self, control: StorageReadControl, ) -> InvocationRequest
Retained physical inputs keep the invoking read allowance even before their first measured FETCH.
pub fn request_scope(request: Option<InvocationRequest>) -> RequestScope
Sourcepub fn fork(&self) -> Self
pub fn fork(&self) -> Self
Keep session identity while giving the existing read worker an immutable inherited scope.
Sourcepub fn fork_with_control(&self, control: StorageReadControl) -> Self
pub fn fork_with_control(&self, control: StorageReadControl) -> Self
Capture a retained child worker’s original read owner along with its session identity.
pub fn enter( &self, control: StorageReadControl, ) -> StorageBackendResult<DiagnosticsScope>
pub fn enter_measured( &self, control: StorageReadControl, timing: bool, io: IOOptions, ) -> StorageBackendResult<DiagnosticsScope>
Sourcepub fn enter_with_options(
&self,
control: StorageReadControl,
timing: Option<bool>,
io: IOOptions,
) -> StorageBackendResult<DiagnosticsScope>
pub fn enter_with_options( &self, control: StorageReadControl, timing: Option<bool>, io: IOOptions, ) -> StorageBackendResult<DiagnosticsScope>
Admit one invocation’s requested I/O and optional physical execution measurements.
Sourcepub fn bind(
&self,
collector: &CapturedDiagnostics,
) -> StorageBackendResult<CapturedScope>
pub fn bind( &self, collector: &CapturedDiagnostics, ) -> StorageBackendResult<CapturedScope>
Install the driver’s fixed capture on the executing thread before invoking any callbacks.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for QueryDiagnostics
impl !UnwindSafe for QueryDiagnostics
impl Freeze for QueryDiagnostics
impl Send for QueryDiagnostics
impl Sync for QueryDiagnostics
impl Unpin for QueryDiagnostics
impl UnsafeUnpin for QueryDiagnostics
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
impl<T> ErasedDestructor for Twhere
T: 'static,
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> ⓘ
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> ⓘ
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