Execute raw protocol bytes and pass the returned backend bytes to `on_data`.
(
&mut self,
message: &[u8],
options: ExecProtocolOptions,
mut on_data: F,
)
| 1127 | /// Execute raw protocol bytes and pass the returned backend bytes to |
| 1128 | /// `on_data`. |
| 1129 | pub fn exec_protocol_raw_stream<F>( |
| 1130 | &mut self, |
| 1131 | message: &[u8], |
| 1132 | options: ExecProtocolOptions, |
| 1133 | mut on_data: F, |
| 1134 | ) -> Result<()> |
| 1135 | where |
| 1136 | F: FnMut(&[u8]) -> Result<()>, |
| 1137 | { |
| 1138 | self.backend.send_framed_raw_stream( |
| 1139 | message, |
| 1140 | options.data_transfer_container, |
| 1141 | &mut on_data, |
| 1142 | )?; |
| 1143 | if options.sync_to_fs { |
| 1144 | let _phase = timing::phase("client.protocol_stream_sync_to_fs"); |
| 1145 | self.sync_to_fs()?; |
| 1146 | } |
| 1147 | Ok(()) |
| 1148 | } |
| 1149 | |
| 1150 | fn exec_protocol_raw_inner( |
| 1151 | &mut self, |