fidl_fuchsia_net_tun

Trait DevicePairProxyInterface

Source
pub trait DevicePairProxyInterface: Send + Sync {
    type AddPortResponseFut: Future<Output = Result<DevicePairAddPortResult, Error>> + Send;
    type RemovePortResponseFut: Future<Output = Result<DevicePairRemovePortResult, Error>> + Send;

    // Required methods
    fn add_port(
        &self,
        config: &DevicePairPortConfig,
    ) -> Self::AddPortResponseFut;
    fn remove_port(&self, id: u8) -> Self::RemovePortResponseFut;
    fn get_left(&self, device: ServerEnd<DeviceMarker>) -> Result<(), Error>;
    fn get_right(&self, device: ServerEnd<DeviceMarker>) -> Result<(), Error>;
    fn get_left_port(
        &self,
        id: u8,
        port: ServerEnd<PortMarker>,
    ) -> Result<(), Error>;
    fn get_right_port(
        &self,
        id: u8,
        port: ServerEnd<PortMarker>,
    ) -> Result<(), Error>;
}

Required Associated Types§

Required Methods§

Source

fn add_port(&self, config: &DevicePairPortConfig) -> Self::AddPortResponseFut

Source

fn remove_port(&self, id: u8) -> Self::RemovePortResponseFut

Source

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

Source

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

Source

fn get_left_port( &self, id: u8, port: ServerEnd<PortMarker>, ) -> Result<(), Error>

Source

fn get_right_port( &self, id: u8, port: ServerEnd<PortMarker>, ) -> Result<(), Error>

Implementors§