/* Copyright (c) Fortanix, Inc.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use BodyExt;
use ;
/// Collects all of the data frames from this body into a [`Buf`].
///
/// As opposed to [`to_bytes()`], this function avoids copying the data
/// and is useful when you don't need a contiguous slice of data.
pub async
/// Collects all of the data frames from this body into [`Bytes`].
pub async