/// Applies any routes that were added to the RealmBuilder that produced this Realm.
Applies any routes that were added to the RealmBuilder that produced this Realm.
Applies any routes that were added to the RealmBuilder that produced this Realm .
async fn flush_routes(&mut self) -> Result<(), Error> {
        let routes: Vec<_> = self.routes_to_add.drain(..).collect();
        for route in routes {
            if let builder::Capability::Event(_, _) = &route.capability {
                builder::RealmBuilder::add_event_route(self, route).await?;
            } else {
                self.add_route(route).await?;
            }
        }
        Ok(())
    }
async fn flush_routes ( & mut self ) -> Result < ( ) , Error > { let routes : Vec < _ > = self . routes_to_add . drain ( .. ) . collect ( ) ; for route in routes { if let builder :: Capability :: Event ( _ , _ ) = & route . capability { builder :: RealmBuilder :: add_event_route ( self , route ) . await ? ; } else { self . add_route ( route ) . await ? ; } } Ok ( ( ) ) }
Applies any routes that were added to the RealmBuilder that produced this Realm.
Applies any routes that were added to the RealmBuilder that produced this Realm .
&mut self