Trait unsafe_io::IntoUnsafeFile[][src]

pub unsafe trait IntoUnsafeFile: IntoUnsafeHandle {
    fn into_unsafe_file(self) -> UnsafeFile;
}
Expand description

A trait for types which can be converted into unsafe files.

A type implementing IntoUnsafeFile guarantees that the return value from into_unsafe_file on an instance of the type is a copy of a handle which is owned by that instance.

Safety

This trait is unsafe because types implementing it must guarantee they own their handle.

Required methods

Convert self into an unsafe file.

Implementors