pub struct ClientSynchronousProxy { /* private fields */ }Implementations§
Source§impl ClientSynchronousProxy
impl ClientSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<ClientEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<ClientEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn get_powercap_tree(
&self,
___deadline: MonotonicInstant,
) -> Result<Vec<PowercapNodeInfo>, Error>
pub fn get_powercap_tree( &self, ___deadline: MonotonicInstant, ) -> Result<Vec<PowercapNodeInfo>, Error>
Retrieves the static powercap zone topology at container initialization.
Sourcepub fn get_power_limit(
&self,
node_id: u64,
___deadline: MonotonicInstant,
) -> Result<ClientGetPowerLimitResult, Error>
pub fn get_power_limit( &self, node_id: u64, ___deadline: MonotonicInstant, ) -> Result<ClientGetPowerLimitResult, Error>
Reads the current constraint_0_power_limit_uw for node_id.
Before SetPowerLimit is called, returns the zone’s initial unthrottled
limit (max_power_uw, or the highest entry in power_levels_uw if
max_power_uw is omitted, or 0 if neither is configured).
Returns PowercapError.INVALID_ARGUMENTS if node_id is unknown or
refers to an unconstrained container zone.
Sourcepub fn set_power_limit(
&self,
node_id: u64,
power_limit_uw: u64,
___deadline: MonotonicInstant,
) -> Result<ClientSetPowerLimitResult, Error>
pub fn set_power_limit( &self, node_id: u64, power_limit_uw: u64, ___deadline: MonotonicInstant, ) -> Result<ClientSetPowerLimitResult, Error>
Writes constraint_0_power_limit_uw for node_id (in microwatts).
Returns PowercapError.INVALID_ARGUMENTS if node_id is unknown or
refers to an unconstrained container zone.
Sourcepub fn get_power_limit_bypass(
&self,
node_id: u64,
___deadline: MonotonicInstant,
) -> Result<ClientGetPowerLimitBypassResult, Error>
pub fn get_power_limit_bypass( &self, node_id: u64, ___deadline: MonotonicInstant, ) -> Result<ClientGetPowerLimitBypassResult, Error>
Reads the remaining bypass duration in milliseconds (power_limit_bypass_msec).
Returns 0 if no bypass is currently active.
Returns PowercapError.INVALID_ARGUMENTS if node_id is unknown or if
supports_bypass is not enabled on the target zone.
Sourcepub fn set_power_limit_bypass(
&self,
node_id: u64,
bypass_time_ms: u64,
___deadline: MonotonicInstant,
) -> Result<ClientSetPowerLimitBypassResult, Error>
pub fn set_power_limit_bypass( &self, node_id: u64, bypass_time_ms: u64, ___deadline: MonotonicInstant, ) -> Result<ClientSetPowerLimitBypassResult, Error>
Sets or clears the power limit bypass timer (power_limit_bypass_msec).
A value of 0 immediately cancels any active bypass and restores the
cached thermal power limit. Setting a non-zero bypass_time_ms while a
bypass is already active replaces the active timer deadline with a new
deadline bypass_time_ms from now.
Returns PowercapError.INVALID_ARGUMENTS if node_id is unknown or if
supports_bypass is not enabled on the target zone.
Trait Implementations§
Source§impl Debug for ClientSynchronousProxy
impl Debug for ClientSynchronousProxy
Source§impl From<Channel> for ClientSynchronousProxy
Available on Fuchsia only.
impl From<Channel> for ClientSynchronousProxy
Source§impl From<ClientSynchronousProxy> for NullableHandle
Available on Fuchsia only.
impl From<ClientSynchronousProxy> for NullableHandle
Source§fn from(value: ClientSynchronousProxy) -> Self
fn from(value: ClientSynchronousProxy) -> Self
Source§impl FromClient for ClientSynchronousProxy
Available on Fuchsia only.
impl FromClient for ClientSynchronousProxy
Source§type Protocol = ClientMarker
type Protocol = ClientMarker
Source§fn from_client(value: ClientEnd<ClientMarker>) -> Self
fn from_client(value: ClientEnd<ClientMarker>) -> Self
Source§impl SynchronousProxy for ClientSynchronousProxy
Available on Fuchsia only.
impl SynchronousProxy for ClientSynchronousProxy
Source§type Proxy = ClientProxy
type Proxy = ClientProxy
Source§type Protocol = ClientMarker
type Protocol = ClientMarker
Proxy controls.