Consumes the `SeqWriter` and returns the inner buffered writer. This allows avoiding Mutex locking overhead in synchronous contexts where exclusive ownership is guaranteed.
(self)
| 100 | /// This allows avoiding Mutex locking overhead in synchronous contexts where |
| 101 | /// exclusive ownership is guaranteed. |
| 102 | pub fn into_inner(self) -> Result<BufWriter<W>> { |
| 103 | let state = self.inner.into_inner().map_err(|_| { |
| 104 | ParcodeError::Internal("Writer mutex poisoned during consumption".into()) |
| 105 | })?; |
| 106 | Ok(state.writer) |
| 107 | } |
| 108 | } |
| 109 | |
| 110 | #[cfg(not(target_arch = "wasm32"))] |
no outgoing calls
no test coverage detected