Skip to main content

UsbSourceProxyInterface

Trait UsbSourceProxyInterface 

Source
pub trait UsbSourceProxyInterface: Send + Sync {
    type GetSpecResponseFut: Future<Output = Result<UsbSourceGetSpecResult, Error>> + Send;
    type GetStatusResponseFut: Future<Output = Result<UsbSourceGetStatusResult, Error>> + Send;
    type SetInputCurrentLimitResponseFut: Future<Output = Result<UsbSourceSetInputCurrentLimitResult, Error>> + Send;
    type WatchResponseFut: Future<Output = Result<UsbSourceWatchResult, Error>> + Send;

    // Required methods
    fn get_spec(&self) -> Self::GetSpecResponseFut;
    fn get_status(&self) -> Self::GetStatusResponseFut;
    fn set_input_current_limit(
        &self,
        limit_ua: u32,
    ) -> Self::SetInputCurrentLimitResponseFut;
    fn watch(
        &self,
        interest: &Status,
        wake_on: &Status,
        lease: Option<EventPair>,
    ) -> Self::WatchResponseFut;
}

Required Associated Types§

Required Methods§

Source

fn get_spec(&self) -> Self::GetSpecResponseFut

Source

fn get_status(&self) -> Self::GetStatusResponseFut

Source

fn set_input_current_limit( &self, limit_ua: u32, ) -> Self::SetInputCurrentLimitResponseFut

Source

fn watch( &self, interest: &Status, wake_on: &Status, lease: Option<EventPair>, ) -> Self::WatchResponseFut

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§