Trait ProviderProxyInterface

Source
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§

Required Methods§

Source

fn socket( &self, domain: Domain, proto: &ProtocolAssociation, ) -> Self::SocketResponseFut

Source

fn socket_with_options( &self, domain: Domain, proto: &ProtocolAssociation, opts: &SocketCreationOptions, ) -> Self::SocketWithOptionsResponseFut

Implementors§

Source§

impl ProviderProxyInterface for ProviderProxy

Source§

type SocketResponseFut = QueryResponseFut<Result<ClientEnd<SocketMarker>, Errno>>

Source§

type SocketWithOptionsResponseFut = QueryResponseFut<Result<ClientEnd<SocketMarker>, Errno>>