# Module io_lifetimes::raw

source · [−]
Expand description

Portability abstractions over `Raw*`.

On Unix, “everything is a file descriptor”. On Windows, file/pipe/process handles are distinct from socket descriptors. This file provides a minimal layer of portability over this difference.

## Traits

AsRawFilelike

A portable trait to obtain the raw value of an underlying filelike object.

AsRawSocketlike

This is a portability abstraction over Unix-like `AsRawFd` and Windows’ `AsRawSocket`.

FromRawFilelike

This is a portability abstraction over Unix-like `FromRawFd` and Windows’ `FromRawHandle`.

FromRawSocketlike

This is a portability abstraction over Unix-like `FromRawFd` and Windows’ `FromRawSocket`.

IntoRawFilelike

This is a portability abstraction over Unix-like `IntoRawFd` and Windows’ `IntoRawHandle`.

IntoRawSocketlike

This is a portability abstraction over Unix-like `IntoRawFd` and Windows’ `IntoRawSocket`.

## Type Definitions

RawFilelike

A raw filelike object.

RawSocketlike

A raw socketlike object.