pub struct RoleManagerSynchronousProxy { /* private fields */ }Implementations§
Source§impl RoleManagerSynchronousProxy
impl RoleManagerSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<RoleManagerEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<RoleManagerEvent, 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 set_role(
&self,
payload: RoleManagerSetRoleRequest,
___deadline: MonotonicInstant,
) -> Result<RoleManagerSetRoleResult, Error>
pub fn set_role( &self, payload: RoleManagerSetRoleRequest, ___deadline: MonotonicInstant, ) -> Result<RoleManagerSetRoleResult, Error>
Sets the given object’s performance parameters based on the requested role. The exact parameters of the role are system dependent and may vary based on device-specific tuning and/or runtime system goals.
- request
targetis a handle to a zircon object to which a profile can be applied. - request
roleis the name of the role to apply to the target. - request
input_parametersis a vector of key/value pairs used to distinguish between multiple variants of the same role.
- response
output_parametersis a vector of key/value pairs that roles can be configured to emit.
- error a zx_status value indicating success or failure.
Trait Implementations§
Source§impl Debug for RoleManagerSynchronousProxy
impl Debug for RoleManagerSynchronousProxy
Source§impl From<Channel> for RoleManagerSynchronousProxy
Available on Fuchsia only.
impl From<Channel> for RoleManagerSynchronousProxy
Available on Fuchsia only.
Source§impl From<RoleManagerSynchronousProxy> for NullableHandle
Available on Fuchsia only.
impl From<RoleManagerSynchronousProxy> for NullableHandle
Available on Fuchsia only.
Source§fn from(value: RoleManagerSynchronousProxy) -> Self
fn from(value: RoleManagerSynchronousProxy) -> Self
Converts to this type from the input type.
Source§impl FromClient for RoleManagerSynchronousProxy
Available on Fuchsia only.
impl FromClient for RoleManagerSynchronousProxy
Available on Fuchsia only.
Source§type Protocol = RoleManagerMarker
type Protocol = RoleManagerMarker
The protocol.
Source§fn from_client(value: ClientEnd<RoleManagerMarker>) -> Self
fn from_client(value: ClientEnd<RoleManagerMarker>) -> Self
Converts from a client.
Source§impl SynchronousProxy for RoleManagerSynchronousProxy
Available on Fuchsia only.
impl SynchronousProxy for RoleManagerSynchronousProxy
Available on Fuchsia only.
Source§type Proxy = RoleManagerProxy
type Proxy = RoleManagerProxy
The async proxy for the same protocol.
Source§type Protocol = RoleManagerMarker
type Protocol = RoleManagerMarker
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 RoleManagerSynchronousProxy
impl RefUnwindSafe for RoleManagerSynchronousProxy
impl Send for RoleManagerSynchronousProxy
impl Sync for RoleManagerSynchronousProxy
impl Unpin for RoleManagerSynchronousProxy
impl UnwindSafe for RoleManagerSynchronousProxy
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