pub fn query<A: SystemService + Actor<Context = Context<A>>>(&self) -> Option<Addr<A>> {
        if let Some(addr) = self.registry.get(&TypeId::of::<A>()) {
            match addr.downcast_ref::<Addr<A>>() {
                Some(addr) => return Some(addr.clone()),
                None => return None,
            }
        }

        None
    }
/// Check if actor is in registry, if so, return its address
Check if actor is in registry, if so, return its address
Check if actor is in registry if so return its address
pub fn query<A: SystemService + Actor<Context = Context<A>>>(&self) -> Option<Addr<A>> {
        if let Some(addr) = self.registry.get(&TypeId::of::<A>()) {
            match addr.downcast_ref::<Addr<A>>() {
                Some(addr) => return Some(addr.clone()),
                None => return None,
            }
        }
        None
    }
pub fn query < A : SystemService + Actor < Context = Context < A > > > ( & self ) -> Option < Addr < A > > { if let Some ( addr ) = self . registry . get ( & TypeId :: of :: < A > ( ) ) { match addr . downcast_ref :: < Addr < A > > ( ) { Some ( addr ) => return Some ( addr . clone ( ) ) , None => return None , } } None }
Check if actor is in registry, if so, return its address
Check if actor is in registry if so return its address
&self
&self