fidl_fuchsia_net_tun

Trait DeviceProxyInterface

Source
pub trait DeviceProxyInterface: Send + Sync {
    type WriteFrameResponseFut: Future<Output = Result<DeviceWriteFrameResult, Error>> + Send;
    type ReadFrameResponseFut: Future<Output = Result<DeviceReadFrameResult, Error>> + Send;
    type GetSignalsResponseFut: Future<Output = Result<EventPair, Error>> + Send;

    // Required methods
    fn write_frame(&self, frame: &Frame) -> Self::WriteFrameResponseFut;
    fn read_frame(&self) -> Self::ReadFrameResponseFut;
    fn get_signals(&self) -> Self::GetSignalsResponseFut;
    fn add_port(
        &self,
        config: &DevicePortConfig,
        port: ServerEnd<PortMarker>,
    ) -> Result<(), Error>;
    fn get_device(&self, device: ServerEnd<DeviceMarker>) -> Result<(), Error>;
    fn delegate_rx_lease(&self, lease: DelegatedRxLease) -> Result<(), Error>;
}

Required Associated Types§

Required Methods§

Source

fn write_frame(&self, frame: &Frame) -> Self::WriteFrameResponseFut

Source

fn read_frame(&self) -> Self::ReadFrameResponseFut

Source

fn get_signals(&self) -> Self::GetSignalsResponseFut

Source

fn add_port( &self, config: &DevicePortConfig, port: ServerEnd<PortMarker>, ) -> Result<(), Error>

Source

fn get_device(&self, device: ServerEnd<DeviceMarker>) -> Result<(), Error>

Source

fn delegate_rx_lease(&self, lease: DelegatedRxLease) -> Result<(), Error>

Implementors§

Source§

impl DeviceProxyInterface for DeviceProxy

Source§

type WriteFrameResponseFut = QueryResponseFut<Result<(), i32>>

Source§

type ReadFrameResponseFut = QueryResponseFut<Result<Frame, i32>>

Source§

type GetSignalsResponseFut = QueryResponseFut<EventPair>