fidl_fuchsia_net_tunTrait 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>;
}