pub enum FanRequest {
GetFanLevel {
responder: FanGetFanLevelResponder,
},
SetFanLevel {
fan_level: u32,
responder: FanSetFanLevelResponder,
},
}Expand description
Fan: get and set fan_level
fan_level: 0 should be the lowest fan state, generally OFF.
Fan speed increases with fan_level and should
match the fuchsia.thermal.ClientStateWatcher
states for fans, where the states are defined
in thermal_config.json for each product.
Thus, the valid values of fan_level is
determined per product according to the
corresponding config json file.
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: FanGetFanLevelResponderSetFanLevel
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.
Implementations§
Source§impl FanRequest
impl FanRequest
pub fn into_get_fan_level(self) -> Option<FanGetFanLevelResponder>
pub fn into_set_fan_level(self) -> Option<(u32, FanSetFanLevelResponder)>
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 FanRequest
impl !UnwindSafe for FanRequest
impl Freeze for FanRequest
impl Send for FanRequest
impl Sync for FanRequest
impl Unpin for FanRequest
impl UnsafeUnpin for FanRequest
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