Trait SpeedtestProxyInterface

Source
pub trait SpeedtestProxyInterface: Send + Sync {
    type PingResponseFut: Future<Output = Result<(), Error>> + Send;
    type SocketUpResponseFut: Future<Output = Result<TransferReport, Error>> + Send;
    type SocketDownResponseFut: Future<Output = Result<TransferReport, Error>> + Send;

    // Required methods
    fn ping(&self) -> Self::PingResponseFut;
    fn socket_up(
        &self,
        socket: Socket,
        params: &TransferParams,
    ) -> Self::SocketUpResponseFut;
    fn socket_down(
        &self,
        socket: Socket,
        params: &TransferParams,
    ) -> Self::SocketDownResponseFut;
}

Required Associated Types§

Required Methods§

Source

fn ping(&self) -> Self::PingResponseFut

Source

fn socket_up( &self, socket: Socket, params: &TransferParams, ) -> Self::SocketUpResponseFut

Source

fn socket_down( &self, socket: Socket, params: &TransferParams, ) -> Self::SocketDownResponseFut

Implementors§