pub enum ControlRequest {
SetEnabled {
enabled: bool,
responder: ControlSetEnabledResponder,
},
}
Expand description
Control provides a IP masquerade instance.
This protocol is associated with the lifetime of the IP masquerade. This configuration will be torn down whenever either end of the protocol is closed.
Variants§
SetEnabled
SetEnabled enables or disabled IP masquerading for the configured instance. Newly created instances are disabled and must be enabled via this API.
- request
enabled
True to enable masquerade; false to disable.
- response
was_enabled
True if the interface was enabled before this call.
Implementations§
Source§impl ControlRequest
impl ControlRequest
pub fn into_set_enabled(self) -> Option<(bool, ControlSetEnabledResponder)>
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 ControlRequest
impl !RefUnwindSafe for ControlRequest
impl Send for ControlRequest
impl Sync for ControlRequest
impl Unpin for ControlRequest
impl !UnwindSafe for ControlRequest
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