Skip to main content

enter

Function enter 

Source
pub fn enter(ctx: PathCtx) -> Guard
Expand description

Install ctx as the ambient context for the duration of the returned guard; the previous context is restored on drop (panic-safe, so a failing test can’t leak into the next).