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
fn into_unsafe_file(self) -> UnsafeFile
[src]
fn into_unsafe_file(self) -> UnsafeFile
[src]Convert self
into an unsafe file.
Implementors
impl<T: IntoRawFd + OwnsRaw> IntoUnsafeFile for T
[src]
impl<T: IntoRawFd + OwnsRaw> IntoUnsafeFile for T
[src]