pub trait SensingScopeAuthority {
// Required method
fn verify_scope(
&self,
grant: &ConsentGrant,
grant_digest: &[u8; 32],
request: &SensingRequest,
) -> Result<(), AuthorizationError>;
}Required Methods§
Sourcefn verify_scope(
&self,
grant: &ConsentGrant,
grant_digest: &[u8; 32],
request: &SensingRequest,
) -> Result<(), AuthorizationError>
fn verify_scope( &self, grant: &ConsentGrant, grant_digest: &[u8; 32], request: &SensingRequest, ) -> Result<(), AuthorizationError>
Verify that a signed scope bound to this grant’s digest permits this exact source, modality, action, and purpose. Mapping a health-category bit alone to sensor permission is insufficient.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".