pub struct ProviderSynchronousProxy { /* private fields */ }
Implementations§
source§impl ProviderSynchronousProxy
impl ProviderSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(&self, deadline: Time) -> Result<ProviderEvent, Error>
pub fn wait_for_event(&self, deadline: Time) -> Result<ProviderEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
sourcepub fn stream_socket(
&self,
domain: Domain,
proto: StreamSocketProtocol,
___deadline: Time
) -> Result<ProviderStreamSocketResult, Error>
pub fn stream_socket( &self, domain: Domain, proto: StreamSocketProtocol, ___deadline: Time ) -> Result<ProviderStreamSocketResult, Error>
Requests a stream socket with the specified parameters.
sourcepub fn datagram_socket_deprecated(
&self,
domain: Domain,
proto: DatagramSocketProtocol,
___deadline: Time
) -> Result<ProviderDatagramSocketDeprecatedResult, Error>
pub fn datagram_socket_deprecated( &self, domain: Domain, proto: DatagramSocketProtocol, ___deadline: Time ) -> Result<ProviderDatagramSocketDeprecatedResult, Error>
Requests a datagram socket with the specified parameters. TODO(https://fxbug.dev/85027): Remove this method once no more callers rely on it.
sourcepub fn datagram_socket(
&self,
domain: Domain,
proto: DatagramSocketProtocol,
___deadline: Time
) -> Result<ProviderDatagramSocketResult, Error>
pub fn datagram_socket( &self, domain: Domain, proto: DatagramSocketProtocol, ___deadline: Time ) -> Result<ProviderDatagramSocketResult, Error>
Requests a datagram socket with the specified parameters.
sourcepub fn interface_index_to_name(
&self,
index: u64,
___deadline: Time
) -> Result<ProviderInterfaceIndexToNameResult, Error>
pub fn interface_index_to_name( &self, index: u64, ___deadline: Time ) -> Result<ProviderInterfaceIndexToNameResult, Error>
Looks up an interface by its index and returns its name. Returns
ZX_ERR_NOT_FOUND
if the specified index doesn’t exist.
sourcepub fn interface_name_to_index(
&self,
name: &str,
___deadline: Time
) -> Result<ProviderInterfaceNameToIndexResult, Error>
pub fn interface_name_to_index( &self, name: &str, ___deadline: Time ) -> Result<ProviderInterfaceNameToIndexResult, Error>
Looks up an interface by its name and returns its index. Returns
ZX_ERR_NOT_FOUND
if the specified name doesn’t exist.
sourcepub fn interface_name_to_flags(
&self,
name: &str,
___deadline: Time
) -> Result<ProviderInterfaceNameToFlagsResult, Error>
pub fn interface_name_to_flags( &self, name: &str, ___deadline: Time ) -> Result<ProviderInterfaceNameToFlagsResult, Error>
Looks up an interface by its name and returns its flags. Returns
ZX_ERR_NOT_FOUND
if the specified name doesn’t exist.
sourcepub fn get_interface_addresses(
&self,
___deadline: Time
) -> Result<Vec<InterfaceAddresses>, Error>
pub fn get_interface_addresses( &self, ___deadline: Time ) -> Result<Vec<InterfaceAddresses>, Error>
Requests a list of [fuchsia.posix.socket.InterfaceAddresses
]
describing the network interfaces on the system.