Trait yao::RoleAdapter

source ·
pub trait RoleAdapter: Send + Sync {
    fn role(&self, name: &str) -> Vec<String> ;
}
Expand description

Role adapter trait

Example

use yao::RoleAdapter;
struct TestAdapter;
impl RoleAdapter for TestAdapter {
    fn role(&self, _name: &str) -> Vec<String> {
        vec!["a1".to_string()]
    }
}

Required Methods§

Implementors§