pub struct OptionWatcherProxy { /* private fields */ }
Implementations§
Source§impl OptionWatcherProxy
impl OptionWatcherProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.net.ndp/OptionWatcher.
Sourcepub fn take_event_stream(&self) -> OptionWatcherEventStream
pub fn take_event_stream(&self) -> OptionWatcherEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn probe(&self) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
pub fn probe(&self) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
Probes for completion of watcher construction.
Returns once the watcher has been registered. Any NDP options received in router advertisements after this returns are guaranteed to be observed by the watcher, assuming that they meet the watcher’s interest criteria and that the watcher does not lag too far behind in consuming yielded options.
Sourcepub fn watch_options(
&self,
) -> QueryResponseFut<(Vec<OptionWatchEntry>, u32), DefaultFuchsiaResourceDialect>
pub fn watch_options( &self, ) -> QueryResponseFut<(Vec<OptionWatchEntry>, u32), DefaultFuchsiaResourceDialect>
The hanging get method for receiving batches of NDP options.
The batching behavior is left as an implementation detail. Not all options in a batch are guaranteed to have been received within the same NDP message, from the same source, or via the same interface.
Clients should only have one call of this method at a time; a second call to this method while a call is already pending will cause the server end of the protocol to be closed.
The server may at its discretion drop options instead of yielding them
if the watcher takes too long to request them via WatchOptions
.
Trait Implementations§
Source§impl Clone for OptionWatcherProxy
impl Clone for OptionWatcherProxy
Source§fn clone(&self) -> OptionWatcherProxy
fn clone(&self) -> OptionWatcherProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for OptionWatcherProxy
impl Debug for OptionWatcherProxy
Source§impl OptionWatcherProxyInterface for OptionWatcherProxy
impl OptionWatcherProxyInterface for OptionWatcherProxy
type ProbeResponseFut = QueryResponseFut<()>
type WatchOptionsResponseFut = QueryResponseFut<(Vec<OptionWatchEntry>, u32)>
fn probe(&self) -> Self::ProbeResponseFut
fn watch_options(&self) -> Self::WatchOptionsResponseFut
Source§impl Proxy for OptionWatcherProxy
impl Proxy for OptionWatcherProxy
Source§type Protocol = OptionWatcherMarker
type Protocol = OptionWatcherMarker
Proxy
controls.