pub struct CpuElementManagerSynchronousProxy { /* private fields */ }
Implementations§
Source§impl CpuElementManagerSynchronousProxy
impl CpuElementManagerSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<CpuElementManagerEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<CpuElementManagerEvent, 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_cpu_dependency_token(
&self,
___deadline: MonotonicInstant,
) -> Result<Cpu, Error>
pub fn get_cpu_dependency_token( &self, ___deadline: MonotonicInstant, ) -> Result<Cpu, Error>
Gets the assertive dependency token for the CPU power element.
Sourcepub fn add_execution_state_dependency(
&self,
payload: CpuElementManagerAddExecutionStateDependencyRequest,
___deadline: MonotonicInstant,
) -> Result<CpuElementManagerAddExecutionStateDependencyResult, Error>
pub fn add_execution_state_dependency( &self, payload: CpuElementManagerAddExecutionStateDependencyRequest, ___deadline: MonotonicInstant, ) -> Result<CpuElementManagerAddExecutionStateDependencyResult, Error>
Adds a dependency from the Execution State power element to the target
power element identified by [dependency_token
] at [power_level
].
Once the Execution State power element is created, future calls will
return [fuchsia.power.system/AddExecutionStateDependencyError.BAD_STATE
]
and no changes to Execution State dependencies will be made.
If any required entries in the request are missing, the server will
return [fuchsia.power.system/AddExecutionStateDependencyError.INVALID_ARGS
].
Trait Implementations§
Source§impl SynchronousProxy for CpuElementManagerSynchronousProxy
impl SynchronousProxy for CpuElementManagerSynchronousProxy
Source§type Proxy = CpuElementManagerProxy
type Proxy = CpuElementManagerProxy
The async proxy for the same protocol.
Source§type Protocol = CpuElementManagerMarker
type Protocol = CpuElementManagerMarker
The protocol which this
Proxy
controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for CpuElementManagerSynchronousProxy
impl RefUnwindSafe for CpuElementManagerSynchronousProxy
impl Send for CpuElementManagerSynchronousProxy
impl Sync for CpuElementManagerSynchronousProxy
impl Unpin for CpuElementManagerSynchronousProxy
impl UnwindSafe for CpuElementManagerSynchronousProxy
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