pub struct SensorManagerProxy { /* private fields */ }
Implementations§
Source§impl SensorManagerProxy
impl SensorManagerProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.thermal/SensorManager.
Sourcepub fn take_event_stream(&self) -> SensorManagerEventStream
pub fn take_event_stream(&self) -> SensorManagerEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn list_sensors(
&self,
) -> QueryResponseFut<Vec<SensorInfo>, DefaultFuchsiaResourceDialect>
pub fn list_sensors( &self, ) -> QueryResponseFut<Vec<SensorInfo>, DefaultFuchsiaResourceDialect>
Lists sensors that may be controlled and connected to by clients.
Sourcepub fn set_temperature_override(
&self,
name: &str,
override_temperature: f32,
) -> QueryResponseFut<SensorManagerSetTemperatureOverrideResult, DefaultFuchsiaResourceDialect>
pub fn set_temperature_override( &self, name: &str, override_temperature: f32, ) -> QueryResponseFut<SensorManagerSetTemperatureOverrideResult, DefaultFuchsiaResourceDialect>
Sets an override temperature for the sensor with name
.
When an override temperature is set, internal thermal policies will
use the override temperature. Temperature values retrieved from
sensor connections vended by Connect
will also receive the override
temperature.
This interaction does not affect the thermal sensor itself.
Clients who connect directly to the sensor without Connect
will
receive the real sensor value.
If a sensor with the given name
is not found,
SetTemperatureOverrideError.SENSOR_NOT_FOUND
is returned.
Sourcepub fn clear_temperature_override(
&self,
name: &str,
) -> QueryResponseFut<SensorManagerClearTemperatureOverrideResult, DefaultFuchsiaResourceDialect>
pub fn clear_temperature_override( &self, name: &str, ) -> QueryResponseFut<SensorManagerClearTemperatureOverrideResult, DefaultFuchsiaResourceDialect>
Clears the temperature override set by SetTemperatureOverride
.
If no temperature override has been set, this interaction does nothing.
If a sensor with the given name
is not found,
ClearTemperatureOverrideError.SENSOR_NOT_FOUND
is returned.
Sourcepub fn connect(
&self,
payload: SensorManagerConnectRequest,
) -> QueryResponseFut<SensorManagerConnectResult, DefaultFuchsiaResourceDialect>
pub fn connect( &self, payload: SensorManagerConnectRequest, ) -> QueryResponseFut<SensorManagerConnectResult, DefaultFuchsiaResourceDialect>
Connects to the thermal sensor with the given name
.
If any required arguments are not provided,
ConnectError.INVALID_ARGUMENTS
is returned.
If a sensor with the given name
is not found,
ConnectError.SENSOR_NOT_FOUND
is returned.
Trait Implementations§
Source§impl Clone for SensorManagerProxy
impl Clone for SensorManagerProxy
Source§fn clone(&self) -> SensorManagerProxy
fn clone(&self) -> SensorManagerProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for SensorManagerProxy
impl Debug for SensorManagerProxy
Source§impl Proxy for SensorManagerProxy
impl Proxy for SensorManagerProxy
Source§type Protocol = SensorManagerMarker
type Protocol = SensorManagerMarker
Proxy
controls.