pub enum DeviceProxy_Request {
ServeController {
req: ServerEnd<ControllerMarker>,
control_handle: DeviceProxy_ControlHandle,
},
ServeDevice {
req: ServerEnd<DeviceInstanceMarker>,
control_handle: DeviceProxy_ControlHandle,
},
}
Expand description
Simple interface to serve devices over fidl.
Variants§
ServeController
Serve the Controller protocol for this device.
ServeDevice
Serve the device’s FIDL protocol.
Implementations§
Source§impl DeviceProxy_Request
impl DeviceProxy_Request
pub fn into_serve_controller( self, ) -> Option<(ServerEnd<ControllerMarker>, DeviceProxy_ControlHandle)>
pub fn into_serve_device( self, ) -> Option<(ServerEnd<DeviceInstanceMarker>, DeviceProxy_ControlHandle)>
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 DeviceProxy_Request
impl !RefUnwindSafe for DeviceProxy_Request
impl Send for DeviceProxy_Request
impl Sync for DeviceProxy_Request
impl Unpin for DeviceProxy_Request
impl !UnwindSafe for DeviceProxy_Request
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