Trait unsafe_io::IntoUnsafeHandle[][src]

pub unsafe trait IntoUnsafeHandle {
    fn into_unsafe_handle(self) -> UnsafeHandle;
}
Expand description

A trait for types which can be converted into an unsafe handle.

A type implementing IntoUnsafeHandle guarantees that the return value from into_unsafe_handle 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 handle.

Implementors