(&mut self, msg: &Message)
| 137 | } |
| 138 | |
| 139 | pub fn write_message(&mut self, msg: &Message) { |
| 140 | if let Some(message::Union::VideoFrame(vf)) = &msg.union { |
| 141 | if let Some(frame) = &vf.union { |
| 142 | self.write_frame(frame).ok(); |
| 143 | } |
| 144 | } |
| 145 | } |
| 146 | |
| 147 | pub fn write_frame(&mut self, frame: &video_frame::Union) -> ResultType<()> { |
| 148 | match frame { |
nothing calls this directly
no test coverage detected