Searched defs:StreamSocket (Results 1 – 3 of 3) sorted by relevance
48 pub struct StreamSocket { struct53 impl StreamSocket { argument55 pub fn connect(sockaddr: &str) -> result::Result<StreamSocket, StreamSocketError> { in connect()97 impl io::Read for StreamSocket { implementation110 impl io::Write for StreamSocket { implementation136 impl AsRawFd for StreamSocket { implementation142 impl From<TcpStream> for StreamSocket { implementation148 impl From<UnixStream> for StreamSocket { implementation154 impl From<VsockStream> for StreamSocket { implementation160 impl FromRawFd for StreamSocket { implementation[all …]
64 fn forward(from_stream: &mut StreamSocket, to_stream: &mut StreamSocket) -> Result<bool> { in forward()79 pub fn new(local: StreamSocket, remote: StreamSocket) -> Self { in new()98 pub fn local_stream(&self) -> &StreamSocket { in local_stream()103 pub fn remote_stream(&self) -> &StreamSocket { in remote_stream()
59 fn run_forwarder(local_stream: StreamSocket, remote_stream: StreamSocket) -> Result<()> { in run_forwarder()