Struct socketpair::SocketpairStream[][src]

#[repr(transparent)]pub struct SocketpairStream(_);

A socketpair stream, which is a bidirectional bytestream much like a UnixStream 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]

impl Close for SocketpairStream[src]

impl Debug for SocketpairStream[src]

impl FromRawFd for SocketpairStream[src]

impl IntoRawFd for SocketpairStream[src]

impl OwnsRaw for SocketpairStream[src]

Safety: SocketpairStream wraps a UnixStream which owns its handle.

impl Read for SocketpairStream[src]

impl Write for SocketpairStream[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AsUnsafeFile for T where
    T: AsRawFd + OwnsRaw
[src]

impl<T> AsUnsafeHandle for T where
    T: AsRawFd + OwnsRaw
[src]

impl<T> AsUnsafeReadWriteHandle for T where
    T: AsRawReadWriteFd + OwnsRaw
[src]

impl<T> AsUnsafeSocket for T where
    T: AsRawFd + OwnsRaw
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> FromUnsafeFile for T where
    T: FromRawFd + OwnsRaw
[src]

impl<T> FromUnsafeSocket for T where
    T: FromRawFd + OwnsRaw
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoUnsafeFile for T where
    T: IntoRawFd + OwnsRaw
[src]

impl<T> IntoUnsafeHandle for T where
    T: IntoRawFd + OwnsRaw
[src]

impl<T> IntoUnsafeSocket for T where
    T: IntoRawFd + OwnsRaw
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.