pub struct DestructionWatcherProxy { /* private fields */ }Implementations§
Source§impl DestructionWatcherProxy
impl DestructionWatcherProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.net.sockets/DestructionWatcher.
Sourcepub fn take_event_stream(&self) -> DestructionWatcherEventStream
pub fn take_event_stream(&self) -> DestructionWatcherEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn watch(
&self,
) -> QueryResponseFut<Vec<IpSocketState>, DefaultFuchsiaResourceDialect>
pub fn watch( &self, ) -> QueryResponseFut<Vec<IpSocketState>, DefaultFuchsiaResourceDialect>
Hanging get for destroyed sockets.
Returns sockets destroyed since the last call to this method. Blocks until at least one event is available.
A “destroyed” socket is one that no longer has any references inside the
Netstack. Especially for TCP sockets (because of TIME-WAIT), this may
happen long after close has returned.
Sockets destroyed before the watcher was created are not returned. Unbound sockets are not returned.
Only one call to Watch may be active at a time. Concurrency is not
allowed and will result in the channel being closed with
ALREADY_EXISTS.
If the client doesn’t read events fast enough, the channel is closed
with NO_RESOURCES.
Trait Implementations§
Source§impl Clone for DestructionWatcherProxy
impl Clone for DestructionWatcherProxy
Source§fn clone(&self) -> DestructionWatcherProxy
fn clone(&self) -> DestructionWatcherProxy
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DestructionWatcherProxy
impl Debug for DestructionWatcherProxy
Source§impl DestructionWatcherProxyInterface for DestructionWatcherProxy
impl DestructionWatcherProxyInterface for DestructionWatcherProxy
type WatchResponseFut = QueryResponseFut<Vec<IpSocketState>>
fn watch(&self) -> Self::WatchResponseFut
Source§impl Proxy for DestructionWatcherProxy
impl Proxy for DestructionWatcherProxy
Source§type Protocol = DestructionWatcherMarker
type Protocol = DestructionWatcherMarker
Proxy controls.Source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
Source§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Source§fn on_closed(&self) -> OnSignals<'_, Unowned<'_, NullableHandle>>
fn on_closed(&self) -> OnSignals<'_, Unowned<'_, NullableHandle>>
PEER_CLOSED signal.