pub enum StackRequest {
SetDhcpClientEnabled {
id: u64,
enable: bool,
responder: StackSetDhcpClientEnabledResponder,
},
BridgeInterfaces {
interfaces: Vec<u64>,
bridge: ServerEnd<ControlMarker>,
control_handle: StackControlHandle,
},
}Variants§
SetDhcpClientEnabled
Enables or disables the DHCP client on an interface. TODO(https://fxbug.dev/42162065): Remove this once the DHCP client is moved out of the netstack.
BridgeInterfaces
Creates a bridge over the provided interfaces.
If the bridge can’t be created, bridge is closed with a BAD_PORT
termination reason.
NOTE: We’re shoehorning bridging into the admin/Control API and
reassigning meaning to BAD_PORT because we don’t want to leak
bridging-specific errors there. The POR is that bridging is going to get
its own API at some point.
Bridge lifetime is controlled through the bridge handle.
Implementations§
Source§impl StackRequest
impl StackRequest
pub fn into_set_dhcp_client_enabled( self, ) -> Option<(u64, bool, StackSetDhcpClientEnabledResponder)>
pub fn into_bridge_interfaces( self, ) -> Option<(Vec<u64>, ServerEnd<ControlMarker>, StackControlHandle)>
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 !RefUnwindSafe for StackRequest
impl !UnwindSafe for StackRequest
impl Freeze for StackRequest
impl Send for StackRequest
impl Sync for StackRequest
impl Unpin for StackRequest
impl UnsafeUnpin for StackRequest
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