pub struct IpIteratorSynchronousProxy { /* private fields */ }
Implementations§
Source§impl IpIteratorSynchronousProxy
impl IpIteratorSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<IpIteratorEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<IpIteratorEvent, 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 next(
&self,
___deadline: MonotonicInstant,
) -> Result<(Vec<IpSocketState>, bool), Error>
pub fn next( &self, ___deadline: MonotonicInstant, ) -> Result<(Vec<IpSocketState>, bool), Error>
Call repeatedly to stream results for a previous request to
Diagnostics.IterateIp
.
A caller must make sure to retrieve sockets in a timely manner, or the
connection may be closed with TIMED_OUT
.
NOTE: The returned sockets do not provide a consistent snapshot of the system. For example, you should never use the state of one socket to infer what the state of another socket will be, since modifications could have occurred in between results for each socket being materialized.
Trait Implementations§
Source§impl Debug for IpIteratorSynchronousProxy
impl Debug for IpIteratorSynchronousProxy
Source§impl From<Channel> for IpIteratorSynchronousProxy
impl From<Channel> for IpIteratorSynchronousProxy
Source§impl From<IpIteratorSynchronousProxy> for Handle
impl From<IpIteratorSynchronousProxy> for Handle
Source§fn from(value: IpIteratorSynchronousProxy) -> Self
fn from(value: IpIteratorSynchronousProxy) -> Self
Converts to this type from the input type.
Source§impl FromClient for IpIteratorSynchronousProxy
impl FromClient for IpIteratorSynchronousProxy
Source§type Protocol = IpIteratorMarker
type Protocol = IpIteratorMarker
The protocol.
Source§fn from_client(value: ClientEnd<IpIteratorMarker>) -> Self
fn from_client(value: ClientEnd<IpIteratorMarker>) -> Self
Converts from a client.
Source§impl SynchronousProxy for IpIteratorSynchronousProxy
impl SynchronousProxy for IpIteratorSynchronousProxy
Source§type Proxy = IpIteratorProxy
type Proxy = IpIteratorProxy
The async proxy for the same protocol.
Source§type Protocol = IpIteratorMarker
type Protocol = IpIteratorMarker
The protocol which this
Proxy
controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for IpIteratorSynchronousProxy
impl RefUnwindSafe for IpIteratorSynchronousProxy
impl Send for IpIteratorSynchronousProxy
impl Sync for IpIteratorSynchronousProxy
impl Unpin for IpIteratorSynchronousProxy
impl UnwindSafe for IpIteratorSynchronousProxy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more