fidl_fuchsia_scheduler_deprecated

Trait ProfileProviderProxyInterface

Source
pub trait ProfileProviderProxyInterface: Send + Sync {
    type GetProfileResponseFut: Future<Output = Result<(i32, Option<Profile>), Error>> + Send;
    type GetDeadlineProfileResponseFut: Future<Output = Result<(i32, Option<Profile>), Error>> + Send;
    type GetCpuAffinityProfileResponseFut: Future<Output = Result<(i32, Option<Profile>), Error>> + Send;
    type SetProfileByRoleResponseFut: Future<Output = Result<i32, Error>> + Send;

    // Required methods
    fn get_profile(
        &self,
        priority: u32,
        name: &str,
    ) -> Self::GetProfileResponseFut;
    fn get_deadline_profile(
        &self,
        capacity: u64,
        deadline: u64,
        period: u64,
        name: &str,
    ) -> Self::GetDeadlineProfileResponseFut;
    fn get_cpu_affinity_profile(
        &self,
        cpu_mask: &CpuSet,
    ) -> Self::GetCpuAffinityProfileResponseFut;
    fn set_profile_by_role(
        &self,
        handle: Handle,
        role: &str,
    ) -> Self::SetProfileByRoleResponseFut;
}

Required Associated Types§

Source

type GetProfileResponseFut: Future<Output = Result<(i32, Option<Profile>), Error>> + Send

Source

type GetDeadlineProfileResponseFut: Future<Output = Result<(i32, Option<Profile>), Error>> + Send

Source

type GetCpuAffinityProfileResponseFut: Future<Output = Result<(i32, Option<Profile>), Error>> + Send

Source

type SetProfileByRoleResponseFut: Future<Output = Result<i32, Error>> + Send

Required Methods§

Source

fn get_profile(&self, priority: u32, name: &str) -> Self::GetProfileResponseFut

Source

fn get_deadline_profile( &self, capacity: u64, deadline: u64, period: u64, name: &str, ) -> Self::GetDeadlineProfileResponseFut

Source

fn get_cpu_affinity_profile( &self, cpu_mask: &CpuSet, ) -> Self::GetCpuAffinityProfileResponseFut

Source

fn set_profile_by_role( &self, handle: Handle, role: &str, ) -> Self::SetProfileByRoleResponseFut

Implementors§

Source§

impl ProfileProviderProxyInterface for ProfileProviderProxy

Source§

type GetProfileResponseFut = QueryResponseFut<(i32, Option<Profile>)>

Source§

type GetDeadlineProfileResponseFut = QueryResponseFut<(i32, Option<Profile>)>

Source§

type GetCpuAffinityProfileResponseFut = QueryResponseFut<(i32, Option<Profile>)>

Source§

type SetProfileByRoleResponseFut = QueryResponseFut<i32>