pub enum FactoryRequest {
Create {
config: ControlConfig,
control: ServerEnd<ControlMarker>,
responder: FactoryCreateResponder,
},
}
Expand description
Factory instantiates Control protocol instances for IP masquerading.
This protocol is used to create instances allowing for the control of IP masquerade of a particular network.
Variants§
Create
Create a new IP masquerade instance using the supplied configuration.
Configurations cannot be changed once instantiated. If a different configuration is to be applied, the prior instance should first be disabled and the channel torn down.
The instance that is returned is initially in a disabled state and must be explicitly enabled prior to use.
- request
config
Configuration to use for the IP masquerade instance. - request
control
Control handle to use for configuring the instance.
Implementations§
Source§impl FactoryRequest
impl FactoryRequest
pub fn into_create( self, ) -> Option<(ControlConfig, ServerEnd<ControlMarker>, FactoryCreateResponder)>
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 FactoryRequest
impl !RefUnwindSafe for FactoryRequest
impl Send for FactoryRequest
impl Sync for FactoryRequest
impl Unpin for FactoryRequest
impl !UnwindSafe for FactoryRequest
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