pub struct ViewSynchronousProxy { /* private fields */ }
Implementations§
source§impl ViewSynchronousProxy
impl ViewSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(&self, deadline: Time) -> Result<ViewEvent, Error>
pub fn wait_for_event(&self, deadline: Time) -> Result<ViewEvent, 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 open_entry_iterator(
&self,
it: ServerEnd<EntryIteratorMarker>,
options: EntryIteratorOptions
) -> Result<(), Error>
pub fn open_entry_iterator( &self, it: ServerEnd<EntryIteratorMarker>, options: EntryIteratorOptions ) -> Result<(), Error>
Open a connection to an [EntryIterator
] for listing existing entries
and optionally watching for state changes.
- request
it
grants access to the [EntryIterator
]. - request
options
specifies the behavior of the [EntryIterator
].
sourcepub fn get_unreachability_config(
&self,
interface: u64,
ip_version: IpVersion,
___deadline: Time
) -> Result<ViewGetUnreachabilityConfigResult, Error>
pub fn get_unreachability_config( &self, interface: u64, ip_version: IpVersion, ___deadline: Time ) -> Result<ViewGetUnreachabilityConfigResult, Error>
View the current configurations of an interface.
- request
interface
interface to read configurations from. - request
ip_version
the IP version to read configurations from.
- response
config
a snapshot of the interface’s configuration.
- error
ZX_ERR_NOT_FOUND
ifinterface
does not exist.