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