Helper to create a new [RecvError] populated with the associated request id for the stream.
(&self, source: impl Into<RecvErrorKind>)
| 633 | |
| 634 | /// Helper to create a new [RecvError] populated with the associated request id for the stream. |
| 635 | fn error(&self, source: impl Into<RecvErrorKind>) -> RecvError { |
| 636 | RecvError { |
| 637 | source: source.into(), |
| 638 | request_metadata: self.make_metadata(None), |
| 639 | } |
| 640 | } |
| 641 | |
| 642 | fn make_metadata(&self, chat_conversation_type: Option<ChatConversationType>) -> RequestMetadata { |
| 643 | RequestMetadata { |
no test coverage detected