pub enum DeviceRequest {
GetStateNormalized {
responder: DeviceGetStateNormalizedResponder,
},
SetStateNormalized {
state: State,
responder: DeviceSetStateNormalizedResponder,
},
GetStateAbsolute {
responder: DeviceGetStateAbsoluteResponder,
},
SetStateAbsolute {
state: State,
responder: DeviceSetStateAbsoluteResponder,
},
GetMaxAbsoluteBrightness {
responder: DeviceGetMaxAbsoluteBrightnessResponder,
},
}
Variants§
GetStateNormalized
Gets the current backlight brightness as a percentage value between 0.0 and 1.0
Fields
§
responder: DeviceGetStateNormalizedResponder
SetStateNormalized
Sets the current backlight brightness as a percentage value between 0.0 and 1.0
GetStateAbsolute
Gets the current backlight brightness in nits
Fields
§
responder: DeviceGetStateAbsoluteResponder
SetStateAbsolute
Sets the current backlight brightness in nits.
GetMaxAbsoluteBrightness
Gets the maximum supported backlight brightness in nits, if known. Otherwise returns error ZX_ERR_NOT_SUPPORTED.
Fields
§
responder: DeviceGetMaxAbsoluteBrightnessResponder
Implementations§
Source§impl DeviceRequest
impl DeviceRequest
pub fn into_get_state_normalized( self, ) -> Option<DeviceGetStateNormalizedResponder>
pub fn into_set_state_normalized( self, ) -> Option<(State, DeviceSetStateNormalizedResponder)>
pub fn into_get_state_absolute(self) -> Option<DeviceGetStateAbsoluteResponder>
pub fn into_set_state_absolute( self, ) -> Option<(State, DeviceSetStateAbsoluteResponder)>
pub fn into_get_max_absolute_brightness( self, ) -> Option<DeviceGetMaxAbsoluteBrightnessResponder>
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