pub struct ProfileProviderSynchronousProxy { /* private fields */ }Implementations§
Source§impl ProfileProviderSynchronousProxy
impl ProfileProviderSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<ProfileProviderEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<ProfileProviderEvent, 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_profile(
&self,
priority: u32,
name: &str,
___deadline: MonotonicInstant,
) -> Result<(i32, Option<Profile>), Error>
pub fn get_profile( &self, priority: u32, name: &str, ___deadline: MonotonicInstant, ) -> Result<(i32, Option<Profile>), Error>
Obtain a profile handle.
Sourcepub fn get_deadline_profile(
&self,
capacity: u64,
deadline: u64,
period: u64,
name: &str,
___deadline: MonotonicInstant,
) -> Result<(i32, Option<Profile>), Error>
pub fn get_deadline_profile( &self, capacity: u64, deadline: u64, period: u64, name: &str, ___deadline: MonotonicInstant, ) -> Result<(i32, Option<Profile>), Error>
Obtain a deadline profile handle.
Sourcepub fn get_cpu_affinity_profile(
&self,
cpu_mask: &CpuSet,
___deadline: MonotonicInstant,
) -> Result<(i32, Option<Profile>), Error>
pub fn get_cpu_affinity_profile( &self, cpu_mask: &CpuSet, ___deadline: MonotonicInstant, ) -> Result<(i32, Option<Profile>), Error>
Obtain a handle for a profile that sets CPU affinity.
Sourcepub fn set_profile_by_role(
&self,
handle: NullableHandle,
role: &str,
___deadline: MonotonicInstant,
) -> Result<i32, Error>
pub fn set_profile_by_role( &self, handle: NullableHandle, role: &str, ___deadline: MonotonicInstant, ) -> Result<i32, Error>
Sets the given object’s profile based on the requested role. The exact parameters of the profile are system dependent and may vary based on device-specific tuning and/or runtime system goals.
Trait Implementations§
Source§impl From<Channel> for ProfileProviderSynchronousProxy
Available on Fuchsia only.
impl From<Channel> for ProfileProviderSynchronousProxy
Available on Fuchsia only.
Source§impl From<ProfileProviderSynchronousProxy> for NullableHandle
Available on Fuchsia only.
impl From<ProfileProviderSynchronousProxy> for NullableHandle
Available on Fuchsia only.
Source§fn from(value: ProfileProviderSynchronousProxy) -> Self
fn from(value: ProfileProviderSynchronousProxy) -> Self
Converts to this type from the input type.
Source§impl FromClient for ProfileProviderSynchronousProxy
Available on Fuchsia only.
impl FromClient for ProfileProviderSynchronousProxy
Available on Fuchsia only.
Source§type Protocol = ProfileProviderMarker
type Protocol = ProfileProviderMarker
The protocol.
Source§fn from_client(value: ClientEnd<ProfileProviderMarker>) -> Self
fn from_client(value: ClientEnd<ProfileProviderMarker>) -> Self
Converts from a client.
Source§impl SynchronousProxy for ProfileProviderSynchronousProxy
Available on Fuchsia only.
impl SynchronousProxy for ProfileProviderSynchronousProxy
Available on Fuchsia only.
Source§type Proxy = ProfileProviderProxy
type Proxy = ProfileProviderProxy
The async proxy for the same protocol.
Source§type Protocol = ProfileProviderMarker
type Protocol = ProfileProviderMarker
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 ProfileProviderSynchronousProxy
impl RefUnwindSafe for ProfileProviderSynchronousProxy
impl Send for ProfileProviderSynchronousProxy
impl Sync for ProfileProviderSynchronousProxy
impl Unpin for ProfileProviderSynchronousProxy
impl UnwindSafe for ProfileProviderSynchronousProxy
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