Skip to main content

capture_session

Function capture_session 

Source
pub fn capture_session<T>(
    title: impl Into<String>,
    run: impl FnOnce() -> T,
) -> T
Expand description

Re-exported runtime and session types from dbgflow-core. Runs a closure inside a fresh in-memory capture session.

This resets the global session state, runs the provided closure, and returns its result. Use current_session to retrieve the captured session afterward.