[−][src]Struct socketpair::SocketpairStream
A socketpair stream, which is a bidirectional bytestream much like a
TcpStream except that it does not have a name or address.
Implementations
impl SocketpairStream[src]
pub fn try_clone(&self) -> Result<Self>[src]
Creates a new independently owned handle to the underlying socket.
pub fn peek(&mut self, buf: &mut [u8]) -> Result<usize>[src]
Receives data on the socket from the remote address to which it is connected, without removing that data from the queue. On success, returns the number of bytes peeked.
pub fn num_ready_bytes(&self) -> Result<u64>[src]
Return the number of bytes which are ready to be read immediately.
Trait Implementations
impl AsRawFd for SocketpairStream[src]
impl AsRawReadWriteFd for SocketpairStream[src]
fn as_raw_read_fd(&self) -> RawFd[src]
fn as_raw_write_fd(&self) -> RawFd[src]
impl Debug for SocketpairStream[src]
impl FromRawFd for SocketpairStream[src]
unsafe fn from_raw_fd(raw_fd: RawFd) -> Self[src]
impl IntoRawFd for SocketpairStream[src]
fn into_raw_fd(self) -> RawFd[src]
impl Read for SocketpairStream[src]
fn read(&mut self, buf: &mut [u8]) -> Result<usize>[src]
fn read_vectored(&mut self, bufs: &mut [IoSliceMut<'_>]) -> Result<usize>[src]
fn read_to_end(&mut self, buf: &mut Vec<u8>) -> Result<usize>[src]
fn read_to_string(&mut self, buf: &mut String) -> Result<usize>[src]
fn read_exact(&mut self, buf: &mut [u8]) -> Result<()>[src]
pub fn is_read_vectored(&self) -> bool[src]
pub unsafe fn initializer(&self) -> Initializer[src]
pub fn by_ref(&mut self) -> &mut Self1.0.0[src]
pub fn bytes(self) -> Bytes<Self>1.0.0[src]
pub fn chain<R>(self, next: R) -> Chain<Self, R> where
R: Read, 1.0.0[src]
R: Read,
pub fn take(self, limit: u64) -> Take<Self>1.0.0[src]
impl Write for SocketpairStream[src]
fn write(&mut self, buf: &[u8]) -> Result<usize>[src]
fn flush(&mut self) -> Result<()>[src]
fn write_vectored(&mut self, bufs: &[IoSlice<'_>]) -> Result<usize>[src]
fn write_all(&mut self, buf: &[u8]) -> Result<()>[src]
fn write_fmt(&mut self, fmt: Arguments<'_>) -> Result<()>[src]
pub fn is_write_vectored(&self) -> bool[src]
pub fn write_all_vectored(
&mut self,
bufs: &mut [IoSlice<'_>]
) -> Result<(), Error>[src]
&mut self,
bufs: &mut [IoSlice<'_>]
) -> Result<(), Error>
pub fn by_ref(&mut self) -> &mut Self1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for SocketpairStream[src]
impl Send for SocketpairStream[src]
impl Sync for SocketpairStream[src]
impl Unpin for SocketpairStream[src]
impl UnwindSafe for SocketpairStream[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> AsUnsafeFile for T where
T: AsRawFd, [src]
T: AsRawFd,
pub fn as_unsafe_file(&self) -> UnsafeFile[src]
pub fn as_file_view(&self) -> View<'_, File>[src]
pub unsafe fn as_unscoped_file_view(&self) -> View<'static, File>[src]
impl<T> AsUnsafeHandle for T where
T: AsRawFd, [src]
T: AsRawFd,
pub fn as_unsafe_handle(&self) -> UnsafeHandle[src]
impl<T> AsUnsafeReadWriteHandle for T where
T: AsRawReadWriteFd, [src]
T: AsRawReadWriteFd,
pub fn as_unsafe_read_handle(&self) -> UnsafeHandle[src]
pub fn as_unsafe_write_handle(&self) -> UnsafeHandle[src]
impl<T> AsUnsafeSocket for T where
T: AsRawFd, [src]
T: AsRawFd,
pub fn as_unsafe_socket(&self) -> UnsafeSocket[src]
pub fn as_tcp_stream_view(&self) -> View<'_, TcpStream>[src]
pub unsafe fn as_unscoped_tcp_stream_view(&self) -> View<'static, TcpStream>[src]
pub fn as_tcp_listener_view(&self) -> View<'_, TcpListener>[src]
pub unsafe fn as_unscoped_tcp_listener_view(&self) -> View<'static, TcpListener>[src]
pub fn as_udp_socket_view(&self) -> View<'_, UdpSocket>[src]
pub unsafe fn as_unscoped_udp_socket_view(&self) -> View<'static, UdpSocket>[src]
pub fn as_unix_stream_view(&self) -> View<'_, UnixStream>[src]
pub unsafe fn as_unscoped_unix_stream_view(&self) -> View<'static, UnixStream>[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T> FromUnsafeFile for T where
T: FromRawFd, [src]
T: FromRawFd,
pub unsafe fn from_unsafe_file(unsafe_file: UnsafeFile) -> T[src]
pub fn from_filelike<IUF>(into_unsafe_file: IUF) -> Self where
IUF: IntoUnsafeFile, [src]
IUF: IntoUnsafeFile,
impl<T> FromUnsafeSocket for T where
T: FromRawFd, [src]
T: FromRawFd,
pub unsafe fn from_unsafe_socket(unsafe_socket: UnsafeSocket) -> T[src]
pub fn from_socketlike<IUS>(into_unsafe_socket: IUS) -> Self where
IUS: IntoUnsafeSocket, [src]
IUS: IntoUnsafeSocket,
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> IntoUnsafeFile for T where
T: IntoRawFd, [src]
T: IntoRawFd,
pub fn into_unsafe_file(self) -> UnsafeFile[src]
impl<T> IntoUnsafeHandle for T where
T: IntoRawFd, [src]
T: IntoRawFd,
pub fn into_unsafe_handle(self) -> UnsafeHandle[src]
impl<T> IntoUnsafeSocket for T where
T: IntoRawFd, [src]
T: IntoRawFd,
pub fn into_unsafe_socket(self) -> UnsafeSocket[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,