pub struct ScopedIterCapture { /* private fields */ }Expand description
IterCaptureGuard bundled with a collector_scope subscriber
install: everything needed to capture one solve’s iteration history
on this thread, with no tracing wiring on the caller’s side.
For solves that don’t fit inside a closure; otherwise prefer
with_iter_capture. Combining with the driver’s own
iteration-history capture (enable_iter_history) is safe.
Implementations§
Source§impl ScopedIterCapture
impl ScopedIterCapture
Sourcepub fn start() -> ScopedIterCapture
pub fn start() -> ScopedIterCapture
Install the collector on this thread and begin capturing.
Sourcepub fn finish(self) -> Vec<IterRecord>
pub fn finish(self) -> Vec<IterRecord>
End capture, uninstall the collector, and return the records
collected since start.
Auto Trait Implementations§
impl !RefUnwindSafe for ScopedIterCapture
impl !UnwindSafe for ScopedIterCapture
impl Freeze for ScopedIterCapture
impl Send for ScopedIterCapture
impl Sync for ScopedIterCapture
impl Unpin for ScopedIterCapture
impl UnsafeUnpin for ScopedIterCapture
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
impl<T, U> Imply<T> for U
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