pub enum DeviceRequest {
GetFanLevel {
responder: DeviceGetFanLevelResponder,
},
SetFanLevel {
fan_level: u32,
responder: DeviceSetFanLevelResponder,
},
GetClientType {
responder: DeviceGetClientTypeResponder,
},
}Variants§
GetFanLevel
Get the current fan level.
- response
statusZX_ERR_INTERNAL iffan_levelis not available. This generally means thatfan_levelhas not been initialized yet or something has gone terribly wrong. - response
fan_levela uint32 field indicating the current fan level. See fan level description above.
Fields
§
responder: DeviceGetFanLevelResponderSetFanLevel
Set the fan level.
- request
fan_levela uint32 field indicating the requested fan level. See fan level description above.
- response
statusZX_ERR_OUT_OF_RANGE if the requested fan_level is not valid.
GetClientType
Returns the client type to use for
fuchsia.thermal.ClientStateConnector::Connect.
Fields
§
responder: DeviceGetClientTypeResponderImplementations§
Source§impl DeviceRequest
impl DeviceRequest
pub fn into_get_fan_level(self) -> Option<DeviceGetFanLevelResponder>
pub fn into_set_fan_level(self) -> Option<(u32, DeviceSetFanLevelResponder)>
pub fn into_get_client_type(self) -> Option<DeviceGetClientTypeResponder>
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 DeviceRequest
impl !UnwindSafe for DeviceRequest
impl Freeze for DeviceRequest
impl Send for DeviceRequest
impl Sync for DeviceRequest
impl Unpin for DeviceRequest
impl UnsafeUnpin 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