// Connects to the `ClientStateConnector` protocol contained within the `NestedEnvironment`
// and uses this protocol to connect a fake client of the given type.
Connects to the `ClientStateConnector` protocol contained within the `NestedEnvironment`
and uses this protocol to connect a fake client of the given type.
Connects to the ` ClientStateConnector ` protocol contained within the ` NestedEnvironment ` and uses this protocol to connect a fake client of the given type .
fn connect_client(&self, client_type: &str) -> FakeClient {
            let connector =
                self.env.connect_to_protocol::<fthermal::ClientStateConnectorMarker>().unwrap();
            let (watcher_proxy, watcher_server_end) =
                fidl::endpoints::create_proxy::<fthermal::ClientStateWatcherMarker>().unwrap();
            // Pass the `watcher_server_end` to the node, so it will be associated with thermal
            // state changes of `client_type`
            assert_matches!(connector.connect(client_type, watcher_server_end), Ok(()));
            FakeClient { watcher_proxy, hanging_watcher_request: RefCell::new(None) }
        }
fn connect_client ( & self , client_type : & str ) -> FakeClient { let connector = self . env . connect_to_protocol :: < fthermal :: ClientStateConnectorMarker > ( ) . unwrap ( ) ; let ( watcher_proxy , watcher_server_end ) = fidl :: endpoints :: create_proxy :: < fthermal :: ClientStateWatcherMarker > ( ) . unwrap ( ) ; // Pass the `watcher_server_end` to the node, so it will be associated with thermal // state changes of `client_type` assert_matches ! ( connector connect ( client_type watcher_server_end ) Ok ( ( ) ) ) ; FakeClient { watcher_proxy , hanging_watcher_request : RefCell :: new ( None ) } }
Connects to the `ClientStateConnector` protocol contained within the `NestedEnvironment`
and uses this protocol to connect a fake client of the given type.
Connects to the ` ClientStateConnector ` protocol contained within the ` NestedEnvironment ` and uses this protocol to connect a fake client of the given type .
&self
client_type
&str