io_lifetimes::views

Trait FilelikeViewType

source
pub unsafe trait FilelikeViewType: FromFilelike + IntoFilelike { }
Expand description

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

§Safety

Types implementing this trait declare that if they are constructed with FromFilelike and consumed with IntoFilelike, their IntoFilelike will return the same OwnedFd value that was passed to their FromFilelike.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl FilelikeViewType for File

Implementors§