pub enum DeviceRequest {
GetHardwareId {
responder: DeviceGetHardwareIdResponder,
},
GetEvent {
responder: DeviceGetEventResponder,
},
}Expand description
The protocol provides access to functions of the driver.
Variants§
GetHardwareId
Returns a unique identifier for this device.
Fields
§
responder: DeviceGetHardwareIdResponderGetEvent
Returns a zircon event object handle!
Fields
§
responder: DeviceGetEventResponderImplementations§
Source§impl DeviceRequest
impl DeviceRequest
pub fn into_get_hardware_id(self) -> Option<DeviceGetHardwareIdResponder>
pub fn into_get_event(self) -> Option<DeviceGetEventResponder>
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 DeviceRequest
impl !RefUnwindSafe for DeviceRequest
impl Send for DeviceRequest
impl Sync for DeviceRequest
impl Unpin for DeviceRequest
impl !UnwindSafe for DeviceRequest
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