pub type RoleView = Arc<dyn Fn(&str) -> Option<Vec<String>> + Send + Sync>;Expand description
The device roles a peer holds, None without a grant. With weirdnet-sync 0.7 or later:
Arc::new(move |peer| identity.roster().roles_of(peer)).
Aliased Typeยง
pub struct RoleView { /* private fields */ }