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
target
is a handle to a zircon object to which a profile can be applied. - request
role
is the name of the role to apply to the target. - request
input_parameters
is a vector of key/value pairs used to distinguish between multiple variants of the same role.
- response
output_parameters
is 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 SynchronousProxy for RoleManagerSynchronousProxy
impl SynchronousProxy for RoleManagerSynchronousProxy
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