Trait AsStream

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

A trait for converting a raw fd to a C *FILE stream.

Provided Methods§

Source

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

Open a raw fd as 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§

Source§

impl<S: AsRawFd + Sized> AsStream for S