Function sentry::shim::with_client_and_scope [] [src]

pub fn with_client_and_scope<F, R>(f: F) -> R where
    F: FnOnce(Arc<Client>, &Scope) -> R,
    R: Default

Invokes a function if the sentry client is available with client and scope.

In shim only mode the closure is never actually executed.