pub enum PrefixControlRequest {
WatchPrefix {
responder: PrefixControlWatchPrefixResponder,
},
}
Expand description
Provides control over prefix acquisition.
If the client end is closed, prefix acquisition will stop. This means that a best effort will be made to release leases back to the server, and no further attempt will be made to acquire any of the prefixes this protocol was configured to acquire.
Variants§
WatchPrefix
Hanging get for the prefix and its lifetimes.
The first call to this method is guaranteed to return
[PrefixEvent.assigned
], and will occur when there is a prefix
to report. Subsequent calls will return immediately if there is a
change to report, or block until a change occurs.
It is invalid to call this method while a previous call is pending.
Doing so will cause the server end of the protocol to be closed with
the terminal event [PrefixControlExitReason.DOUBLE_WATCH
].
- response
event
an optional prefix.
Fields
responder: PrefixControlWatchPrefixResponder
Implementations§
Source§impl PrefixControlRequest
impl PrefixControlRequest
pub fn into_watch_prefix(self) -> Option<PrefixControlWatchPrefixResponder>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL