StreamSocketProxyInterface

Trait StreamSocketProxyInterface 

Source
pub trait StreamSocketProxyInterface: Send + Sync {
    type CloseResponseFut: Future<Output = Result<CloseableCloseResult, Error>> + Send;
    type BindResponseFut: Future<Output = Result<StreamSocketBindResult, Error>> + Send;
    type ConnectResponseFut: Future<Output = Result<StreamSocketConnectResult, Error>> + Send;
    type ListenResponseFut: Future<Output = Result<StreamSocketListenResult, Error>> + Send;
    type AcceptResponseFut: Future<Output = Result<StreamSocketAcceptResult, Error>> + Send;
    type GetSockNameResponseFut: Future<Output = Result<StreamSocketGetSockNameResult, Error>> + Send;
    type GetPeerNameResponseFut: Future<Output = Result<StreamSocketGetPeerNameResult, Error>> + Send;
    type GetErrorResponseFut: Future<Output = Result<StreamSocketGetErrorResult, Error>> + Send;

    // Required methods
    fn close(&self) -> Self::CloseResponseFut;
    fn bind(&self, addr: &VsockAddress) -> Self::BindResponseFut;
    fn connect(&self, remote_address: &VsockAddress) -> Self::ConnectResponseFut;
    fn listen(&self, backlog: i32) -> Self::ListenResponseFut;
    fn accept(&self, want_addr: bool) -> Self::AcceptResponseFut;
    fn get_sock_name(&self) -> Self::GetSockNameResponseFut;
    fn get_peer_name(&self) -> Self::GetPeerNameResponseFut;
    fn get_error(&self) -> Self::GetErrorResponseFut;
}

Required Associated Types§

Required Methods§

Source

fn close(&self) -> Self::CloseResponseFut

Source

fn bind(&self, addr: &VsockAddress) -> Self::BindResponseFut

Source

fn connect(&self, remote_address: &VsockAddress) -> Self::ConnectResponseFut

Source

fn listen(&self, backlog: i32) -> Self::ListenResponseFut

Source

fn accept(&self, want_addr: bool) -> Self::AcceptResponseFut

Source

fn get_sock_name(&self) -> Self::GetSockNameResponseFut

Source

fn get_peer_name(&self) -> Self::GetPeerNameResponseFut

Source

fn get_error(&self) -> Self::GetErrorResponseFut

Implementors§