pub struct BodyPieces<BodyT> {
pub body: BodyT,
pub first_bytes: Bytes,
}
Expand description
Body pieces.
Can be used to reconstruct a body, e.g. with BodyReader::new_with_first_bytes.
Fields§
§body: BodyT
Body.
first_bytes: Bytes
First bytes.
Implementations§
Trait Implementations§
Source§impl<BodyT: Clone> Clone for BodyPieces<BodyT>
impl<BodyT: Clone> Clone for BodyPieces<BodyT>
Source§fn clone(&self) -> BodyPieces<BodyT>
fn clone(&self) -> BodyPieces<BodyT>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<BodyT> !Freeze for BodyPieces<BodyT>
impl<BodyT> RefUnwindSafe for BodyPieces<BodyT>where
BodyT: RefUnwindSafe,
impl<BodyT> Send for BodyPieces<BodyT>where
BodyT: Send,
impl<BodyT> Sync for BodyPieces<BodyT>where
BodyT: Sync,
impl<BodyT> Unpin for BodyPieces<BodyT>where
BodyT: Unpin,
impl<BodyT> UnwindSafe for BodyPieces<BodyT>where
BodyT: UnwindSafe,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more