Trait os_pipe::FromFile [] [src]

pub trait FromFile<T> {
    fn from_file(T) -> Self;
}

Safely convert between two types that hold a file descriptor, like std::fs::File and std::process::Stdio.

The standard library supports this conversion, but it requires platform-specific traits and an unsafe call. This is a safe wrapper for convenience.

Required Methods

Implementors