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§
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
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".