1
Fork 0
rust/library/std/src/sys/anonymous_pipe/unsupported.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
569 B
Rust
Raw Normal View History

use crate::{
io,
pipe::{PipeReader, PipeWriter},
process::Stdio,
};
pub(crate) use crate::sys::pipe::AnonPipe;
#[inline]
pub(crate) fn pipe() -> io::Result<(AnonPipe, AnonPipe)> {
Err(io::Error::UNSUPPORTED_PLATFORM)
}
#[unstable(feature = "anonymous_pipe", issue = "127154")]
impl From<PipeReader> for Stdio {
fn from(pipe: PipeReader) -> Self {
pipe.0.diverge()
}
}
#[unstable(feature = "anonymous_pipe", issue = "127154")]
impl From<PipeWriter> for Stdio {
fn from(pipe: PipeWriter) -> Self {
pipe.0.diverge()
}
}