Skip to content

Commit

Permalink
more doc for tower compat service.
Browse files Browse the repository at this point in the history
  • Loading branch information
fakeshadow committed Jan 17, 2024
1 parent c106c61 commit 213ba64
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web/src/service/tower_http_compat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ impl<B, C> CompatReqBody<B, C> {
}
}

/// destruct compat body into owned value of body and state context
///
/// # Panics
/// - When called from a thread not where B is originally constructed.
#[inline]
pub fn into_parts(self) -> (B, C) {
(self.body.into_inner(), self.ctx)
Expand Down

0 comments on commit 213ba64

Please sign in to comment.