(&self)
| 108 | |
| 109 | impl Endpoint { |
| 110 | fn out_file(&self) -> Option<&File> { |
| 111 | match self { |
| 112 | Self::File(f) => Some(f), |
| 113 | Self::FilePair(f, _) => Some(f), |
| 114 | Self::PtyPair(f, _) => Some(f), |
| 115 | Self::Null => None, |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | fn in_file(&self) -> Option<&File> { |
| 120 | match self { |