NetworkProxyInterface

Trait NetworkProxyInterface 

Source
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§

Implementors§