pub fn as_read_end(&mut self) {
        // This operation should/must be done only once per address space!
        if self.locked { panic!("Pipe is already locked!") }
        self.locked = true;
        self.close_pipe_end(PipeEnd::Write);
        self.write_closed = true;
        self.connect_pipe_end(PipeEnd::Read, libc::STDIN_FILENO);
    }
/// Marks and locks the Pipe in the current address space
/// as read end.
Marks and locks the Pipe in the current address space
as read end.
Marks and locks the Pipe in the current address space as read end .
pub fn as_read_end(&mut self) {
        // This operation should/must be done only once per address space!
        if self.locked { panic!("Pipe is already locked!") }
        self.locked = true;
        self.close_pipe_end(PipeEnd::Write);
        self.write_closed = true;
        self.connect_pipe_end(PipeEnd::Read, libc::STDIN_FILENO);
    }
pub fn as_read_end ( & mut self ) { // This operation should/must be done only once per address space! if self . locked { panic ! ( " " ) } self . locked = true ; self . close_pipe_end ( PipeEnd :: Write ) ; self . write_closed = true ; self . connect_pipe_end ( PipeEnd :: Read , libc :: STDIN_FILENO ) ; }
Marks and locks the Pipe in the current address space
as read end.
Marks and locks the Pipe in the current address space as read end .
&mut self
&mut self