pub struct AsyncAnalyzer { /* private fields */ }
Expand description
Async type analysis system
Implementations§
Source§impl AsyncAnalyzer
impl AsyncAnalyzer
Sourcepub fn track_future(
&self,
ptr: usize,
future_type: &str,
initial_state: FutureState,
)
pub fn track_future( &self, ptr: usize, future_type: &str, initial_state: FutureState, )
Track a new future
Sourcepub fn record_state_transition(
&self,
ptr: usize,
from_state: FutureState,
to_state: FutureState,
)
pub fn record_state_transition( &self, ptr: usize, from_state: FutureState, to_state: FutureState, )
Record a state transition
Sourcepub fn record_await_point(
&self,
ptr: usize,
location: &str,
await_type: AwaitType,
)
pub fn record_await_point( &self, ptr: usize, location: &str, await_type: AwaitType, )
Record an await point
Sourcepub fn complete_await_point(&self, ptr: usize, location: &str)
pub fn complete_await_point(&self, ptr: usize, location: &str)
Complete an await point
Sourcepub fn complete_future(&self, ptr: usize, result: FutureResult)
pub fn complete_future(&self, ptr: usize, result: FutureResult)
Mark a future as completed
Sourcepub fn get_async_statistics(&self) -> AsyncStatistics
pub fn get_async_statistics(&self) -> AsyncStatistics
Get async statistics
Sourcepub fn analyze_async_patterns(&self) -> AsyncPatternAnalysis
pub fn analyze_async_patterns(&self) -> AsyncPatternAnalysis
Analyze async patterns
Sourcepub fn get_future_info(&self, ptr: usize) -> Option<FutureInfo>
pub fn get_future_info(&self, ptr: usize) -> Option<FutureInfo>
Get future information
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for AsyncAnalyzer
impl RefUnwindSafe for AsyncAnalyzer
impl Send for AsyncAnalyzer
impl Sync for AsyncAnalyzer
impl Unpin for AsyncAnalyzer
impl UnwindSafe for AsyncAnalyzer
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