Trait yao::RoleAdapter
source · 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()]
}
}