fidl_fuchsia_hardware_network

Trait PortProxyInterface

Source
pub trait PortProxyInterface: Send + Sync {
    type GetInfoResponseFut: Future<Output = Result<PortInfo, Error>> + Send;
    type GetStatusResponseFut: Future<Output = Result<PortStatus, Error>> + Send;
    type GetCountersResponseFut: Future<Output = Result<PortGetCountersResponse, Error>> + Send;

    // Required methods
    fn get_info(&self) -> Self::GetInfoResponseFut;
    fn get_status(&self) -> Self::GetStatusResponseFut;
    fn get_status_watcher(
        &self,
        watcher: ServerEnd<StatusWatcherMarker>,
        buffer: u32,
    ) -> Result<(), Error>;
    fn get_mac(&self, mac: ServerEnd<MacAddressingMarker>) -> Result<(), Error>;
    fn get_device(&self, device: ServerEnd<DeviceMarker>) -> Result<(), Error>;
    fn clone(&self, port: ServerEnd<PortMarker>) -> Result<(), Error>;
    fn get_counters(&self) -> Self::GetCountersResponseFut;
    fn get_diagnostics(
        &self,
        diagnostics: ServerEnd<DiagnosticsMarker>,
    ) -> Result<(), Error>;
}

Required Associated Types§

Required Methods§

Source

fn get_info(&self) -> Self::GetInfoResponseFut

Source

fn get_status(&self) -> Self::GetStatusResponseFut

Source

fn get_status_watcher( &self, watcher: ServerEnd<StatusWatcherMarker>, buffer: u32, ) -> Result<(), Error>

Source

fn get_mac(&self, mac: ServerEnd<MacAddressingMarker>) -> Result<(), Error>

Source

fn get_device(&self, device: ServerEnd<DeviceMarker>) -> Result<(), Error>

Source

fn clone(&self, port: ServerEnd<PortMarker>) -> Result<(), Error>

Source

fn get_counters(&self) -> Self::GetCountersResponseFut

Source

fn get_diagnostics( &self, diagnostics: ServerEnd<DiagnosticsMarker>, ) -> Result<(), Error>

Implementors§