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