# Module io_lifetimes::views

source · [−]
Expand description

Typed views using temporary objects.

This module defines the return types for `AsFilelike::as_filelike_view` and `AsSocketlike::as_socketlike_view`.

## Structs

FilelikeView

A non-owning view of a resource which dereferences to a `&Target` or `&mut Target`. These are returned by `AsFilelike::as_filelike_view`.

SocketlikeView

A non-owning view of a resource which dereferences to a `&Target` or `&mut Target`. These are returned by `AsSocketlike::as_socketlike_view`.

## Traits

FilelikeViewType

Declare that a type is safe to use in a `FilelikeView`.

SocketlikeViewType

Declare that a type is safe to use in a `SocketlikeView`.