/// Start serving directory protocol service requests via a `ServiceList`.
/// The resulting `ServiceList` can be attached to a new environment in
/// order to provide child components with access to these services.
Start serving directory protocol service requests via a `ServiceList`.
The resulting `ServiceList` can be attached to a new environment in
order to provide child components with access to these services.
Start serving directory protocol service requests via a ` ServiceList ` . The resulting ` ServiceList ` can be attached to a new environment in order to provide child components with access to these services .
pub fn host_services_list(&mut self) -> Result<ServiceList, Error> {
        let names = self.nodes[ROOT_NODE].expect_dir().keys().cloned().collect();
        let (chan1, chan2) = zx::Channel::create()?;
        self.serve_connection(chan1)?;
        Ok(ServiceList { names, provider: None, host_directory: Some(chan2) })
    }
pub fn host_services_list ( & mut self ) -> Result < ServiceList , Error > { let names = self . nodes [ ROOT_NODE ] . expect_dir ( ) . keys ( ) . cloned ( ) . collect ( ) ; let ( chan1 , chan2 ) = zx :: Channel :: create ( ) ? ; self . serve_connection ( chan1 ) ? ; Ok ( ServiceList { names , provider : None , host_directory : Some ( chan2 ) } ) }
Start serving directory protocol service requests via a `ServiceList`.
Start serving directory protocol service requests via a ` ServiceList ` .
&mut self