Struct unsafe_io::UnsafeWriteable[][src]

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

A non-owning unsafe I/O handle that implements Write. Write functions considered are 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 writes to the handle as if it were a File. On Windows, this writes to a file-like handle as if it were a File, and to a socket-like handle as if it were a TcpStream.

Trait Implementations

impl AsRawFd for UnsafeWriteable[src]

UnsafeWriteable doesn't own its handle; see the comments for impl AsRawFd for UnsafeHandle.

impl Clone for UnsafeWriteable[src]

impl Copy for UnsafeWriteable[src]

impl Debug for UnsafeWriteable[src]

impl FromRawFd for UnsafeWriteable[src]

UnsafeWriteable doesn't own its handle; see the comments for impl AsRawFd for UnsafeHandle.

impl FromUnsafeHandle for UnsafeWriteable[src]

UnsafeWriteable doesn't own its handle; see the comments for impl AsRawFd for UnsafeHandle.

impl IntoRawFd for UnsafeWriteable[src]

UnsafeWriteable doesn't own its handle; see the comments for impl AsRawFd for UnsafeHandle.

impl Write for UnsafeWriteable[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.