pub enum InstallerRequest {
InstallDevice {
device: ClientEnd<DeviceMarker>,
device_control: ServerEnd<DeviceControlMarker>,
control_handle: InstallerControlHandle,
},
InstallBlackholeInterface {
interface: ServerEnd<ControlMarker>,
options: Options,
control_handle: InstallerControlHandle,
},
}Expand description
Installs devices on the network stack.
Variants§
InstallDevice
Installs a device on the network stack.
- request
devicethe device to install on the network stack. - request
device_controlgrants access to the installed device.
Fields
§
device: ClientEnd<DeviceMarker>§
device_control: ServerEnd<DeviceControlMarker>§
control_handle: InstallerControlHandleInstallBlackholeInterface
Installs a blackhole interface on the network stack.
A “blackhole” interface is an interface that drops any outbound traffic transmitted through it, and never receives any inbound traffic.
- request
interfacegrants access to the installed interface.
Implementations§
Source§impl InstallerRequest
impl InstallerRequest
pub fn into_install_device( self, ) -> Option<(ClientEnd<DeviceMarker>, ServerEnd<DeviceControlMarker>, InstallerControlHandle)>
pub fn into_install_blackhole_interface( self, ) -> Option<(ServerEnd<ControlMarker>, Options, InstallerControlHandle)>
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 InstallerRequest
impl !RefUnwindSafe for InstallerRequest
impl Send for InstallerRequest
impl Sync for InstallerRequest
impl Unpin for InstallerRequest
impl !UnwindSafe for InstallerRequest
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