Function sentry_contrib_native::set_user_consent
source · [−]pub fn set_user_consent(consent: Consent)
Expand description
Resets the user consent (back to unknown).
Examples
let mut options = Options::new();
options.set_require_user_consent(true);
let _shutdown = options.init()?;
set_user_consent(Consent::Given);
assert_eq!(Consent::Given, user_consent());