Struct unsafe_io::UnsafeReadable[][src]

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

A non-owning unsafe I/O handle that implements Read. Read functions are considered safe, so this type requires unsafe to construct.

Like UnsafeHandle, this doesn’t implement Into* or From* traits.

Platform-specific behavior

On Posix-ish platforms, this reads from the handle as if it were a File. On Windows, this reads from a file-like handle as if it were a File, and from a socket-like handle as if it were a TcpStream.

Trait Implementations

impl AsRawFd for UnsafeReadable[src]

UnsafeReadable doesn’t own its handle; see the comments for impl AsRawFd for UnsafeHandle.

impl Clone for UnsafeReadable[src]

impl Copy for UnsafeReadable[src]

impl Debug for UnsafeReadable[src]

impl FromRawFd for UnsafeReadable[src]

UnsafeReadable doesn’t own its handle; see the comments for impl AsRawFd for UnsafeHandle.

impl FromUnsafeHandle for UnsafeReadable[src]

UnsafeReadable doesn’t own its handle; see the comments for impl AsRawFd for UnsafeHandle.

impl IntoRawFd for UnsafeReadable[src]

UnsafeReadable doesn’t own its handle; see the comments for impl AsRawFd for UnsafeHandle.

impl Read for UnsafeReadable[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[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, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.