Skip to main content

with_session

Function with_session 

Source
pub fn with_session<T>(
    session: Option<Rc<dyn ActiveSession>>,
    f: impl FnOnce() -> T,
) -> T
Expand description

Run f with session active for seal/open on this thread, restoring the prior session after (mirrors with_suite).