Trait IntoStream

Source
pub trait IntoStream: IntoRawFd + Sized {
    // Provided method
    fn into_stream<S: AsRef<str>>(self, mode: S) -> Result<CFile> { ... }
}
Expand description

A trait to express the ability to consume an object and acquire ownership of its stream.

Provided Methods§

Source

fn into_stream<S: AsRef<str>>(self, mode: S) -> Result<CFile>

Consumes this raw fd, returning the raw underlying C *FILE stream.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§