Skip to content

Commit

Permalink
IppReader: Allow to release underlying reader again
Browse files Browse the repository at this point in the history
  • Loading branch information
jbruechert authored and ancwrd1 committed May 29, 2024
1 parent 5adb35a commit 338fd27
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ipp/src/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 338fd27

Please sign in to comment.