pub struct NetworkContextSynchronousProxy { /* private fields */ }
Implementations§
source§impl NetworkContextSynchronousProxy
impl NetworkContextSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(
&self,
deadline: Time
) -> Result<NetworkContextEvent, Error>
pub fn wait_for_event( &self, deadline: Time ) -> Result<NetworkContextEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
pub fn clone( &self, network_context: ServerEnd<NetworkContextMarker> ) -> Result<(), Error>
pub fn get_network_manager( &self, net_manager: ServerEnd<NetworkManagerMarker> ) -> Result<(), Error>
pub fn get_endpoint_manager( &self, endp_manager: ServerEnd<EndpointManagerMarker> ) -> Result<(), Error>
sourcepub fn setup(
&self,
networks: &mut dyn ExactSizeIterator<Item = &mut NetworkSetup>,
___deadline: Time
) -> Result<(i32, Option<ClientEnd<SetupHandleMarker>>), Error>
pub fn setup( &self, networks: &mut dyn ExactSizeIterator<Item = &mut NetworkSetup>, ___deadline: Time ) -> Result<(i32, Option<ClientEnd<SetupHandleMarker>>), Error>
Creates a collection of networks described by networks
.
status
is ZX_OK
for success
setup_handle
is a resource that references and maintains the lifecycle of
the created networks and endpoints.