fidl_fuchsia_hardware_hrtimer

Trait DeviceProxyInterface

Source
pub trait DeviceProxyInterface: Send + Sync {
    type StartResponseFut: Future<Output = Result<DeviceStartResult, Error>> + Send;
    type StopResponseFut: Future<Output = Result<DeviceStopResult, Error>> + Send;
    type GetTicksLeftResponseFut: Future<Output = Result<DeviceGetTicksLeftResult, Error>> + Send;
    type SetEventResponseFut: Future<Output = Result<DeviceSetEventResult, Error>> + Send;
    type StartAndWaitResponseFut: Future<Output = Result<DeviceStartAndWaitResult, Error>> + Send;
    type StartAndWait2ResponseFut: Future<Output = Result<DeviceStartAndWait2Result, Error>> + Send;
    type GetPropertiesResponseFut: Future<Output = Result<Properties, Error>> + Send;

    // Required methods
    fn start(
        &self,
        id: u64,
        resolution: &Resolution,
        ticks: u64,
    ) -> Self::StartResponseFut;
    fn stop(&self, id: u64) -> Self::StopResponseFut;
    fn get_ticks_left(&self, id: u64) -> Self::GetTicksLeftResponseFut;
    fn set_event(&self, id: u64, event: Event) -> Self::SetEventResponseFut;
    fn start_and_wait(
        &self,
        id: u64,
        resolution: &Resolution,
        ticks: u64,
        setup_event: Event,
    ) -> Self::StartAndWaitResponseFut;
    fn start_and_wait2(
        &self,
        id: u64,
        resolution: &Resolution,
        ticks: u64,
        setup_keep_alive: EventPair,
    ) -> Self::StartAndWait2ResponseFut;
    fn get_properties(&self) -> Self::GetPropertiesResponseFut;
}

Required Associated Types§

Required Methods§

Source

fn start( &self, id: u64, resolution: &Resolution, ticks: u64, ) -> Self::StartResponseFut

Source

fn stop(&self, id: u64) -> Self::StopResponseFut

Source

fn get_ticks_left(&self, id: u64) -> Self::GetTicksLeftResponseFut

Source

fn set_event(&self, id: u64, event: Event) -> Self::SetEventResponseFut

Source

fn start_and_wait( &self, id: u64, resolution: &Resolution, ticks: u64, setup_event: Event, ) -> Self::StartAndWaitResponseFut

Source

fn start_and_wait2( &self, id: u64, resolution: &Resolution, ticks: u64, setup_keep_alive: EventPair, ) -> Self::StartAndWait2ResponseFut

Source

fn get_properties(&self) -> Self::GetPropertiesResponseFut

Implementors§