pub trait RouterRegistry {
// Required methods
fn register_router(
&mut self,
router_id: String,
router: Addr<RouterActor>,
) -> Result<(), String>;
fn get_router(&self, action: String) -> (Option<Addr<RouterActor>>, String);
fn unregister_router(&mut self, router_id: &str);
}
Required Methods§
fn register_router( &mut self, router_id: String, router: Addr<RouterActor>, ) -> Result<(), String>
Sourcefn get_router(&self, action: String) -> (Option<Addr<RouterActor>>, String)
fn get_router(&self, action: String) -> (Option<Addr<RouterActor>>, String)
returns the address of the routeractor to call and the method to use to call