pub enum DeviceRequest {
GetPowerWatts {
responder: DeviceGetPowerWattsResponder,
},
GetVoltageVolts {
responder: DeviceGetVoltageVoltsResponder,
},
GetSensorName {
responder: DeviceGetSensorNameResponder,
},
}
Variants§
GetPowerWatts
Fields
§
responder: DeviceGetPowerWattsResponder
GetVoltageVolts
Fields
§
responder: DeviceGetVoltageVoltsResponder
GetSensorName
Fields
§
responder: DeviceGetSensorNameResponder
Implementations§
Source§impl DeviceRequest
impl DeviceRequest
pub fn into_get_power_watts(self) -> Option<DeviceGetPowerWattsResponder>
pub fn into_get_voltage_volts(self) -> Option<DeviceGetVoltageVoltsResponder>
pub fn into_get_sensor_name(self) -> Option<DeviceGetSensorNameResponder>
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