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: MonotonicInstant,
) -> Result<ProviderEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> 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: MonotonicInstant,
) -> Result<ProviderStreamSocketResult, Error>
pub fn stream_socket( &self, domain: Domain, proto: StreamSocketProtocol, ___deadline: MonotonicInstant, ) -> Result<ProviderStreamSocketResult, Error>
Requests a stream socket with the specified parameters.
Sourcepub fn datagram_socket_deprecated(
&self,
domain: Domain,
proto: DatagramSocketProtocol,
___deadline: MonotonicInstant,
) -> Result<ProviderDatagramSocketDeprecatedResult, Error>
pub fn datagram_socket_deprecated( &self, domain: Domain, proto: DatagramSocketProtocol, ___deadline: MonotonicInstant, ) -> Result<ProviderDatagramSocketDeprecatedResult, Error>
Requests a datagram socket with the specified parameters. TODO(https://fxbug.dev/42165881): Remove this method once no more callers rely on it.
Sourcepub fn datagram_socket(
&self,
domain: Domain,
proto: DatagramSocketProtocol,
___deadline: MonotonicInstant,
) -> Result<ProviderDatagramSocketResult, Error>
pub fn datagram_socket( &self, domain: Domain, proto: DatagramSocketProtocol, ___deadline: MonotonicInstant, ) -> Result<ProviderDatagramSocketResult, Error>
Requests a datagram socket with the specified parameters.
Sourcepub fn interface_index_to_name(
&self,
index: u64,
___deadline: MonotonicInstant,
) -> Result<ProviderInterfaceIndexToNameResult, Error>
pub fn interface_index_to_name( &self, index: u64, ___deadline: MonotonicInstant, ) -> 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: MonotonicInstant,
) -> Result<ProviderInterfaceNameToIndexResult, Error>
pub fn interface_name_to_index( &self, name: &str, ___deadline: MonotonicInstant, ) -> 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: MonotonicInstant,
) -> Result<ProviderInterfaceNameToFlagsResult, Error>
pub fn interface_name_to_flags( &self, name: &str, ___deadline: MonotonicInstant, ) -> 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: MonotonicInstant,
) -> Result<Vec<InterfaceAddresses>, Error>
pub fn get_interface_addresses( &self, ___deadline: MonotonicInstant, ) -> Result<Vec<InterfaceAddresses>, Error>
Requests a list of [fuchsia.posix.socket.InterfaceAddresses
]
describing the network interfaces on the system.
Trait Implementations§
Source§impl Debug for ProviderSynchronousProxy
impl Debug for ProviderSynchronousProxy
Source§impl SynchronousProxy for ProviderSynchronousProxy
impl SynchronousProxy for ProviderSynchronousProxy
Source§type Proxy = ProviderProxy
type Proxy = ProviderProxy
Source§type Protocol = ProviderMarker
type Protocol = ProviderMarker
Proxy
controls.