pub struct FixedSizeBodyDecoder { /* private fields */ }Expand description
Message body decoder for fixed-size bodies.
It does not do any allocations. The message body is returned in form of chunks. No chunks will be returned once a given amount of bytes has been returned.
Implementations§
Source§impl FixedSizeBodyDecoder
impl FixedSizeBodyDecoder
Sourcepub const fn new(expected: usize) -> FixedSizeBodyDecoder
pub const fn new(expected: usize) -> FixedSizeBodyDecoder
Create a new fixed-size decoder expecting a given number of bytes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FixedSizeBodyDecoder
impl RefUnwindSafe for FixedSizeBodyDecoder
impl Send for FixedSizeBodyDecoder
impl Sync for FixedSizeBodyDecoder
impl Unpin for FixedSizeBodyDecoder
impl UnwindSafe for FixedSizeBodyDecoder
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