Trait io_lifetimes::IntoFilelike
source · pub trait IntoFilelike: Into<OwnedHandle> {
// Required method
fn into_filelike(self) -> OwnedFilelike;
}
Expand description
A portable trait to express the ability to consume an object and acquire ownership of its filelike object.
This is a portability abstraction over Unix-like Into<OwnedFd>
and
Windows’ Into<OwnedHandle>
.
Required Methods§
sourcefn into_filelike(self) -> OwnedFilelike
fn into_filelike(self) -> OwnedFilelike
Consumes this object, returning the underlying filelike object.
Object Safety§
This trait is not object safe.