pub struct PowerTokenProviderSynchronousProxy { /* private fields */ }
Implementations§
Source§impl PowerTokenProviderSynchronousProxy
impl PowerTokenProviderSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<PowerTokenProviderEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<PowerTokenProviderEvent, 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_token(
&self,
___deadline: MonotonicInstant,
) -> Result<PowerTokenProviderGetTokenResult, Error>
pub fn get_token( &self, ___deadline: MonotonicInstant, ) -> Result<PowerTokenProviderGetTokenResult, Error>
Returns a token which can be used with fuchsia.power.broker
APIs to
create a relationship between this driver’s power element(s) and the
power element this token is associated with.
Trait Implementations§
Source§impl From<Channel> for PowerTokenProviderSynchronousProxy
impl From<Channel> for PowerTokenProviderSynchronousProxy
Source§impl From<PowerTokenProviderSynchronousProxy> for Handle
impl From<PowerTokenProviderSynchronousProxy> for Handle
Source§fn from(value: PowerTokenProviderSynchronousProxy) -> Self
fn from(value: PowerTokenProviderSynchronousProxy) -> Self
Converts to this type from the input type.
Source§impl FromClient for PowerTokenProviderSynchronousProxy
impl FromClient for PowerTokenProviderSynchronousProxy
Source§type Protocol = PowerTokenProviderMarker
type Protocol = PowerTokenProviderMarker
The protocol.
Source§fn from_client(value: ClientEnd<PowerTokenProviderMarker>) -> Self
fn from_client(value: ClientEnd<PowerTokenProviderMarker>) -> Self
Converts from a client.
Source§impl SynchronousProxy for PowerTokenProviderSynchronousProxy
impl SynchronousProxy for PowerTokenProviderSynchronousProxy
Source§type Proxy = PowerTokenProviderProxy
type Proxy = PowerTokenProviderProxy
The async proxy for the same protocol.
Source§type Protocol = PowerTokenProviderMarker
type Protocol = PowerTokenProviderMarker
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 PowerTokenProviderSynchronousProxy
impl RefUnwindSafe for PowerTokenProviderSynchronousProxy
impl Send for PowerTokenProviderSynchronousProxy
impl Sync for PowerTokenProviderSynchronousProxy
impl Unpin for PowerTokenProviderSynchronousProxy
impl UnwindSafe for PowerTokenProviderSynchronousProxy
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