From 338fd27a67df1e2c4c470f0e0b2104d90406741a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonah=20Br=C3=BCchert?= Date: Wed, 29 May 2024 16:22:20 +0200 Subject: [PATCH] IppReader: Allow to release underlying reader again --- ipp/src/reader.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ipp/src/reader.rs b/ipp/src/reader.rs index 85864ca..d92d5a1 100644 --- a/ipp/src/reader.rs +++ b/ipp/src/reader.rs @@ -82,6 +82,11 @@ where Ok(IppHeader::new(version, operation_status, request_id)) } + /// Release the underlying reader + pub fn into_inner(self) -> R { + self.inner + } + /// Convert the remaining inner stream into IppPayload pub fn into_payload(self) -> IppPayload where @@ -169,6 +174,11 @@ where Ok(IppHeader::new(version, operation_status, request_id)) } + /// Release the underlying reader + pub fn into_inner(self) -> R { + self.inner + } + /// Convert the remaining inner stream into IppPayload pub fn into_payload(self) -> IppPayload where