pub struct OptionWatcherSynchronousProxy { /* private fields */ }
Implementations§
Source§impl OptionWatcherSynchronousProxy
impl OptionWatcherSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<OptionWatcherEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<OptionWatcherEvent, 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 probe(&self, ___deadline: MonotonicInstant) -> Result<(), Error>
pub fn probe(&self, ___deadline: MonotonicInstant) -> Result<(), Error>
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,
___deadline: MonotonicInstant,
) -> Result<(Vec<OptionWatchEntry>, u32), Error>
pub fn watch_options( &self, ___deadline: MonotonicInstant, ) -> Result<(Vec<OptionWatchEntry>, u32), Error>
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 SynchronousProxy for OptionWatcherSynchronousProxy
impl SynchronousProxy for OptionWatcherSynchronousProxy
Source§type Proxy = OptionWatcherProxy
type Proxy = OptionWatcherProxy
Source§type Protocol = OptionWatcherMarker
type Protocol = OptionWatcherMarker
Proxy
controls.