fidl_fuchsia_netemul_network

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§

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

Source§

type GetConfigResponseFut = QueryResponseFut<NetworkConfig>

Source§

type GetNameResponseFut = QueryResponseFut<String>

Source§

type SetConfigResponseFut = QueryResponseFut<i32>

Source§

type AttachEndpointResponseFut = QueryResponseFut<i32>

Source§

type RemoveEndpointResponseFut = QueryResponseFut<i32>

Source§

type StartCaptureResponseFut = QueryResponseFut<i32>

Source§

type StopCaptureResponseFut = QueryResponseFut<()>