pub struct ProfileProviderProxy { /* private fields */ }
Implementations§
source§impl ProfileProviderProxy
impl ProfileProviderProxy
sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.scheduler.deprecated/ProfileProvider.
sourcepub fn take_event_stream(&self) -> ProfileProviderEventStream
pub fn take_event_stream(&self) -> ProfileProviderEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
sourcepub fn get_profile(
&self,
priority: u32,
name: &str
) -> QueryResponseFut<(i32, Option<Profile>)>
pub fn get_profile( &self, priority: u32, name: &str ) -> QueryResponseFut<(i32, Option<Profile>)>
Obtain a profile handle.
TODO(https://fxbug.dev/42116876): This API will be deprecated and removed in the future, use SetProfileByRole instead.
sourcepub fn get_deadline_profile(
&self,
capacity: u64,
deadline: u64,
period: u64,
name: &str
) -> QueryResponseFut<(i32, Option<Profile>)>
pub fn get_deadline_profile( &self, capacity: u64, deadline: u64, period: u64, name: &str ) -> QueryResponseFut<(i32, Option<Profile>)>
Obtain a deadline profile handle.
TODO(https://fxbug.dev/42116876): This API will be deprecated and removed in the future, use SetProfileByRole instead.
sourcepub fn get_cpu_affinity_profile(
&self,
cpu_mask: &CpuSet
) -> QueryResponseFut<(i32, Option<Profile>)>
pub fn get_cpu_affinity_profile( &self, cpu_mask: &CpuSet ) -> QueryResponseFut<(i32, Option<Profile>)>
Obtain a handle for a profile that sets CPU affinity.
TODO(https://fxbug.dev/42116876): This API will be deprecated and removed in the future, use SetProfileByRole instead.
sourcepub fn set_profile_by_role(
&self,
handle: Handle,
role: &str
) -> QueryResponseFut<i32>
pub fn set_profile_by_role( &self, handle: Handle, role: &str ) -> QueryResponseFut<i32>
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 Clone for ProfileProviderProxy
impl Clone for ProfileProviderProxy
source§fn clone(&self) -> ProfileProviderProxy
fn clone(&self) -> ProfileProviderProxy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ProfileProviderProxy
impl Debug for ProfileProviderProxy
source§impl ProfileProviderProxyInterface for ProfileProviderProxy
impl ProfileProviderProxyInterface for ProfileProviderProxy
type GetProfileResponseFut = QueryResponseFut<(i32, Option<Profile>)>
fn get_profile(&self, priority: u32, name: &str) -> Self::GetProfileResponseFut
type GetDeadlineProfileResponseFut = QueryResponseFut<(i32, Option<Profile>)>
fn get_deadline_profile( &self, capacity: u64, deadline: u64, period: u64, name: &str ) -> Self::GetDeadlineProfileResponseFut
type GetCpuAffinityProfileResponseFut = QueryResponseFut<(i32, Option<Profile>)>
fn get_cpu_affinity_profile( &self, cpu_mask: &CpuSet ) -> Self::GetCpuAffinityProfileResponseFut
type SetProfileByRoleResponseFut = QueryResponseFut<i32>
fn set_profile_by_role( &self, handle: Handle, role: &str ) -> Self::SetProfileByRoleResponseFut
source§impl Proxy for ProfileProviderProxy
impl Proxy for ProfileProviderProxy
§type Protocol = ProfileProviderMarker
type Protocol = ProfileProviderMarker
Proxy
controls.