#[allow(unused_imports)]
use anyhow::Context;
#[cfg(feature = "stdio_swap")]
#[cfg(unix)]
pub trait StdioExtContext: std :: os :: unix :: io :: StdioExt {
fn replace_fd_wc < T : core :: convert :: Into < std :: os :: fd :: OwnedFd > > ( & mut self , replace_with : T ) -> crate :: rewrite_output_type ! ( std :: io :: Result < std :: os :: fd :: OwnedFd > ) {
< Self as :: std :: os :: unix :: io :: StdioExt > :: replace_fd(self, replace_with)
.with_context(|| crate::call_failed!(Some(self), "replace_fd", crate::CustomDebugMessage("value of type impl Into")))
}
fn set_fd_wc < T : core :: convert :: Into < std :: os :: fd :: OwnedFd > > ( & mut self , fd : T ) -> crate :: rewrite_output_type ! ( std :: io :: Result < ( ) > ) {
< Self as :: std :: os :: unix :: io :: StdioExt > :: set_fd(self, fd)
.with_context(|| crate::call_failed!(Some(self), "set_fd", crate::CustomDebugMessage("value of type impl Into")))
}
fn take_fd_wc ( & mut self ) -> crate :: rewrite_output_type ! ( std :: io :: Result < std :: os :: fd :: OwnedFd > ) {
< Self as :: std :: os :: unix :: io :: StdioExt > :: take_fd(self)
.with_context(|| crate::call_failed!(Some(self), "take_fd"))
}
}
#[cfg(feature = "stdio_swap")]
#[cfg(unix)]
impl<T> StdioExtContext for T where T: std :: os :: unix :: io :: StdioExt {}