/// Start serving directory protocol service requests on a new channel.
Start serving directory protocol service requests on a new channel.
Start serving directory protocol service requests on a new channel .
pub fn start_on_channel(self, channel: zx::Channel) -> Result<FdioServer, Error> {
            let channel = fasync::Channel::from_channel(channel)?;
            channel
                .as_ref()
                .signal_peer(Signals::NONE, Signals::USER_0)
                .unwrap_or_else(|e| {
                    eprintln!("ServicesServer::start_on_channel signal_peer failed with {}", e);
                });
            let mut server = FdioServer {
                connections: FuturesUnordered::new(),
                factories: self.services,
            };
            server.serve_connection(channel);
            Ok(server)
        }
pub fn start_on_channel ( self , channel : zx :: Channel ) -> Result < FdioServer , Error > { let channel = fasync :: Channel :: from_channel ( channel ) ? ; channel . as_ref ( ) . signal_peer ( Signals :: NONE , Signals :: USER_0 ) . unwrap_or_else ( | e | { eprintln ! ( " " e ) ; } ) ; let mut server = FdioServer { connections : FuturesUnordered :: new ( ) , factories : self . services , } ; server . serve_connection ( channel ) ; Ok ( server ) }
Start serving directory protocol service requests on a new channel.
Start serving directory protocol service requests on a new channel .
self
channel
zx::Channel