pub enum OptionWatcherRequest {
Probe {
responder: OptionWatcherProbeResponder,
},
WatchOptions {
responder: OptionWatcherWatchOptionsResponder,
},
}
Expand description
An NDP option watcher.
Variants§
Probe
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.
Fields
responder: OptionWatcherProbeResponder
WatchOptions
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
.
Fields
responder: OptionWatcherWatchOptionsResponder
Implementations§
Source§impl OptionWatcherRequest
impl OptionWatcherRequest
pub fn into_probe(self) -> Option<OptionWatcherProbeResponder>
pub fn into_watch_options(self) -> Option<OptionWatcherWatchOptionsResponder>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL