pub trait ProviderProxyInterface: Send + Sync {
type SocketResponseFut: Future<Output = Result<ProviderSocketResult, Error>> + Send;
type SocketWithOptionsResponseFut: Future<Output = Result<ProviderSocketWithOptionsResult, Error>> + Send;
// Required methods
fn socket(&self, kind: Kind) -> Self::SocketResponseFut;
fn socket_with_options(
&self,
kind: Kind,
opts: SocketCreationOptions,
) -> Self::SocketWithOptionsResponseFut;
}Required Associated Types§
type SocketResponseFut: Future<Output = Result<ProviderSocketResult, Error>> + Send
type SocketWithOptionsResponseFut: Future<Output = Result<ProviderSocketWithOptionsResult, Error>> + Send
Required Methods§
fn socket(&self, kind: Kind) -> Self::SocketResponseFut
fn socket_with_options( &self, kind: Kind, opts: SocketCreationOptions, ) -> Self::SocketWithOptionsResponseFut
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".