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,
domain: Domain,
proto: &ProtocolAssociation,
) -> Self::SocketResponseFut;
fn socket_with_options(
&self,
domain: Domain,
proto: &ProtocolAssociation,
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, domain: Domain, proto: &ProtocolAssociation, ) -> Self::SocketResponseFut
fn socket_with_options( &self, domain: Domain, proto: &ProtocolAssociation, opts: SocketCreationOptions, ) -> Self::SocketWithOptionsResponseFut
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".