fidl_fuchsia_lowpan_spinel

Trait DeviceProxyInterface

Source
pub trait DeviceProxyInterface: Send + Sync {
    type OpenResponseFut: Future<Output = Result<DeviceOpenResult, Error>> + Send;
    type CloseResponseFut: Future<Output = Result<DeviceCloseResult, Error>> + Send;
    type GetMaxFrameSizeResponseFut: Future<Output = Result<u32, Error>> + Send;

    // Required methods
    fn open(&self) -> Self::OpenResponseFut;
    fn close(&self) -> Self::CloseResponseFut;
    fn get_max_frame_size(&self) -> Self::GetMaxFrameSizeResponseFut;
    fn send_frame(&self, data: &[u8]) -> Result<(), Error>;
    fn ready_to_receive_frames(
        &self,
        number_of_frames: u32,
    ) -> Result<(), Error>;
}

Required Associated Types§

Required Methods§

Source

fn open(&self) -> Self::OpenResponseFut

Source

fn close(&self) -> Self::CloseResponseFut

Source

fn get_max_frame_size(&self) -> Self::GetMaxFrameSizeResponseFut

Source

fn send_frame(&self, data: &[u8]) -> Result<(), Error>

Source

fn ready_to_receive_frames(&self, number_of_frames: u32) -> Result<(), Error>

Implementors§