Skip to main content

DeviceWriteAuthorizer

Type Alias DeviceWriteAuthorizer 

Source
pub type DeviceWriteAuthorizer = Arc<dyn Fn(&MutationAuthorizationContext) -> bool + Send + Sync>;
Expand description

The shared endpoint’s gate for writes to its local Device, given the same redacted context ServerPolicy::authorize_mutation sees, under the same calling rules. A full server uses its ServerPolicy instead.

Aliased Type§

pub struct DeviceWriteAuthorizer { /* private fields */ }