pub struct BytesBody { /* private fields */ }Expand description
A body already in memory, handed out in CHUNK_LEN-sized pieces.
For a backend that has the bytes already — a cache, a bundled asset, a test double — so it satisfies the same chunked contract as one still on the wire and its callers cannot tell the difference.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for BytesBody
impl RefUnwindSafe for BytesBody
impl Send for BytesBody
impl Sync for BytesBody
impl Unpin for BytesBody
impl UnsafeUnpin for BytesBody
impl UnwindSafe for BytesBody
Blanket Implementations§
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