pub trait NetworkProxyInterface: Send + Sync {
    type GetConfigResponseFut: Future<Output = Result<NetworkConfig, Error>> + Send;
    type GetNameResponseFut: Future<Output = Result<String, Error>> + Send;
    type SetConfigResponseFut: Future<Output = Result<i32, Error>> + Send;
    type AttachEndpointResponseFut: Future<Output = Result<i32, Error>> + Send;
    type RemoveEndpointResponseFut: Future<Output = Result<i32, Error>> + Send;
    type StartCaptureResponseFut: Future<Output = Result<i32, Error>> + Send;
    type StopCaptureResponseFut: Future<Output = Result<(), Error>> + Send;

    // Required methods
    fn add_port(
        &self,
        port: ClientEnd<PortMarker>,
        interface: ServerEnd<InterfaceMarker>
    ) -> Result<(), Error>;
    fn get_config(&self) -> Self::GetConfigResponseFut;
    fn get_name(&self) -> Self::GetNameResponseFut;
    fn set_config(&self, config: &NetworkConfig) -> Self::SetConfigResponseFut;
    fn attach_endpoint(&self, name: &str) -> Self::AttachEndpointResponseFut;
    fn remove_endpoint(&self, name: &str) -> Self::RemoveEndpointResponseFut;
    fn create_fake_endpoint(
        &self,
        ep: ServerEnd<FakeEndpointMarker>
    ) -> Result<(), Error>;
    fn start_capture(&self, name: &str) -> Self::StartCaptureResponseFut;
    fn stop_capture(&self) -> Self::StopCaptureResponseFut;
}

Required Associated Types§

Required Methods§

source

fn add_port( &self, port: ClientEnd<PortMarker>, interface: ServerEnd<InterfaceMarker> ) -> Result<(), Error>

source

fn get_config(&self) -> Self::GetConfigResponseFut

source

fn get_name(&self) -> Self::GetNameResponseFut

source

fn set_config(&self, config: &NetworkConfig) -> Self::SetConfigResponseFut

source

fn attach_endpoint(&self, name: &str) -> Self::AttachEndpointResponseFut

source

fn remove_endpoint(&self, name: &str) -> Self::RemoveEndpointResponseFut

source

fn create_fake_endpoint( &self, ep: ServerEnd<FakeEndpointMarker> ) -> Result<(), Error>

source

fn start_capture(&self, name: &str) -> Self::StartCaptureResponseFut

source

fn stop_capture(&self) -> Self::StopCaptureResponseFut

Implementors§

source§

impl NetworkProxyInterface for NetworkProxy

§

type GetConfigResponseFut = QueryResponseFut<NetworkConfig>

§

type GetNameResponseFut = QueryResponseFut<String>

§

type SetConfigResponseFut = QueryResponseFut<i32>

§

type AttachEndpointResponseFut = QueryResponseFut<i32>

§

type RemoveEndpointResponseFut = QueryResponseFut<i32>

§

type StartCaptureResponseFut = QueryResponseFut<i32>

§

type StopCaptureResponseFut = QueryResponseFut<()>