pub fn create_interface_watcher(&self) -> error::Result<fnet_interfaces::WatcherProxy> {
        let (watcher, watcher_server) = fidl::endpoints::create_proxy::<
            fnet_interfaces::WatcherMarker,
        >()
        .map_err(|e| error::Hal::Fidl {
            context: "failed to create fuchsia.net.interfaces/Watcher proxy".to_string(),
            source: e,
        })?;
        let () = self
            .interface_state
            .get_watcher(
                fnet_interfaces::WatcherOptions { ..fnet_interfaces::WatcherOptions::EMPTY },
                watcher_server,
            )
            .map_err(|e| error::Hal::Fidl {
                context: "failed to call fuchsia.net.interfaces/State.get_watcher".to_string(),
                source: e,
            })?;
        Ok(watcher)
    }
/// Returns an interface watcher client proxy.
Returns an interface watcher client proxy.
Returns an interface watcher client proxy .
pub fn create_interface_watcher(&self) -> error::Result<fnet_interfaces::WatcherProxy> {
        let (watcher, watcher_server) = fidl::endpoints::create_proxy::<
            fnet_interfaces::WatcherMarker,
        >()
        .map_err(|e| error::Hal::Fidl {
            context: "failed to create fuchsia.net.interfaces/Watcher proxy".to_string(),
            source: e,
        })?;
        let () = self
            .interface_state
            .get_watcher(
                fnet_interfaces::WatcherOptions { ..fnet_interfaces::WatcherOptions::EMPTY },
                watcher_server,
            )
            .map_err(|e| error::Hal::Fidl {
                context: "failed to call fuchsia.net.interfaces/State.get_watcher".to_string(),
                source: e,
            })?;
        Ok(watcher)
    }
pub fn create_interface_watcher ( & self ) -> error :: Result < fnet_interfaces :: WatcherProxy > { let ( watcher , watcher_server ) = fidl :: endpoints :: create_proxy :: < fnet_interfaces :: WatcherMarker , > ( ) . map_err ( | e | error :: Hal :: Fidl { context : " " . to_string ( ) , source : e , } ) ? ; let ( ) = self . interface_state . get_watcher ( fnet_interfaces :: WatcherOptions { .. fnet_interfaces :: WatcherOptions :: EMPTY } , watcher_server , ) . map_err ( | e | error :: Hal :: Fidl { context : " " . to_string ( ) , source : e , } ) ? ; Ok ( watcher ) }
Returns an interface watcher client proxy.
Returns an interface watcher client proxy .
&self
&self