pub struct ExecutionStateManagerSynchronousProxy { /* private fields */ }Implementations§
Source§impl ExecutionStateManagerSynchronousProxy
impl ExecutionStateManagerSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<ExecutionStateManagerEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<ExecutionStateManagerEvent, 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_execution_state_dependency_token(
&self,
___deadline: MonotonicInstant,
) -> Result<ExecutionState, Error>
pub fn get_execution_state_dependency_token( &self, ___deadline: MonotonicInstant, ) -> Result<ExecutionState, Error>
Gets the dependency token for the execution state power element. This will block if SAG is not fully initialized.
Sourcepub fn add_application_activity_dependency(
&self,
payload: ExecutionStateManagerAddApplicationActivityDependencyRequest,
___deadline: MonotonicInstant,
) -> Result<ExecutionStateManagerAddApplicationActivityDependencyResult, Error>
pub fn add_application_activity_dependency( &self, payload: ExecutionStateManagerAddApplicationActivityDependencyRequest, ___deadline: MonotonicInstant, ) -> Result<ExecutionStateManagerAddApplicationActivityDependencyResult, Error>
Adds a dependency from the Application Activity power element to the target
power element identified by [dependency_token] at [power_level].
Be aware of the following client-side conditions:
- If SAG is not fully initialized, the call blocks until initialization is complete.
- The call may block as required by
fuchsia.power.broker/ElementControl.AddDependency, which at time of writing may callfuchsia.power.ElementControl.SetLevelon the associated power element.
Trait Implementations§
Source§impl From<Channel> for ExecutionStateManagerSynchronousProxy
Available on Fuchsia only.
impl From<Channel> for ExecutionStateManagerSynchronousProxy
Available on Fuchsia only.
Source§impl From<ExecutionStateManagerSynchronousProxy> for NullableHandle
Available on Fuchsia only.
impl From<ExecutionStateManagerSynchronousProxy> for NullableHandle
Available on Fuchsia only.
Source§fn from(value: ExecutionStateManagerSynchronousProxy) -> Self
fn from(value: ExecutionStateManagerSynchronousProxy) -> Self
Converts to this type from the input type.
Source§impl FromClient for ExecutionStateManagerSynchronousProxy
Available on Fuchsia only.
impl FromClient for ExecutionStateManagerSynchronousProxy
Available on Fuchsia only.
Source§type Protocol = ExecutionStateManagerMarker
type Protocol = ExecutionStateManagerMarker
The protocol.
Source§fn from_client(value: ClientEnd<ExecutionStateManagerMarker>) -> Self
fn from_client(value: ClientEnd<ExecutionStateManagerMarker>) -> Self
Converts from a client.
Source§impl SynchronousProxy for ExecutionStateManagerSynchronousProxy
Available on Fuchsia only.
impl SynchronousProxy for ExecutionStateManagerSynchronousProxy
Available on Fuchsia only.
Source§type Proxy = ExecutionStateManagerProxy
type Proxy = ExecutionStateManagerProxy
The async proxy for the same protocol.
Source§type Protocol = ExecutionStateManagerMarker
type Protocol = ExecutionStateManagerMarker
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 ExecutionStateManagerSynchronousProxy
impl RefUnwindSafe for ExecutionStateManagerSynchronousProxy
impl Send for ExecutionStateManagerSynchronousProxy
impl Sync for ExecutionStateManagerSynchronousProxy
impl Unpin for ExecutionStateManagerSynchronousProxy
impl UnsafeUnpin for ExecutionStateManagerSynchronousProxy
impl UnwindSafe for ExecutionStateManagerSynchronousProxy
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