Create a streaming error with a specific kind
(
error: E,
kind: StreamingErrorKind,
)
| 322 | |
| 323 | /// Create a streaming error with a specific kind |
| 324 | pub fn with_kind<E: Into<BoxError>>( |
| 325 | error: E, |
| 326 | kind: StreamingErrorKind, |
| 327 | ) -> Self { |
| 328 | Self { inner: error.into(), kind } |
| 329 | } |
| 330 | |
| 331 | /// Create an I/O error |
| 332 | pub fn io<E: Into<BoxError>>(error: E) -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected