pub enum RuleWatcherV4Request {
Watch {
responder: RuleWatcherV4WatchResponder,
},
}
Expand description
An observer protocol for changes in the system’s IPv4 rules table.
Variants§
Watch
Hanging-Get style API for observing routing rule changes.
Clients must only have one pending Watch
call at a time. Calling
Watch
while a request is already pending will cause the protocol to
close.
The first N events will always be existing
where N is the number of
IPv4 rules that already existed when the server-end of the protocol was
initialized. The following event will be idle
signaling the end of the
existing
events. At this point the client has watched all existing
state and will never again observe an existing
event.
- response
events
A vector of at mostMAX_EVENTS
events.
Fields
§
responder: RuleWatcherV4WatchResponder
Implementations§
Source§impl RuleWatcherV4Request
impl RuleWatcherV4Request
pub fn into_watch(self) -> Option<RuleWatcherV4WatchResponder>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RuleWatcherV4Request
impl !RefUnwindSafe for RuleWatcherV4Request
impl Send for RuleWatcherV4Request
impl Sync for RuleWatcherV4Request
impl Unpin for RuleWatcherV4Request
impl !UnwindSafe for RuleWatcherV4Request
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more