Trait RouterRegistry

Source
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§

Source

fn register_router( &mut self, router_id: String, router: Addr<RouterActor>, ) -> Result<(), String>

Source

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

Source

fn unregister_router(&mut self, router_id: &str)

Implementors§