Trait unsafe_io::AsUnsafeHandle [−][src]
A trait for types which contain an unsafe handle and can expose it.
A type implementing AsUnsafeHandle
guarantees that the return value from
as_unsafe_handle
on an instance of the type is a copy of a handle which is
owned.
Safety
This trait is unsafe
because types implementing it must guarantee they
own their handle.
Required methods
fn as_unsafe_handle(&self) -> UnsafeHandle
[src]
Return the contained unsafe handle.
Provided methods
fn eq_handle<Handlelike: IntoUnsafeHandle + AsUnsafeHandle>(
&self,
other: &Handlelike
) -> bool
[src]
&self,
other: &Handlelike
) -> bool
Test whether self.as_unsafe_handle()
is equal to
other.as_unsafe_handle()
.