pub struct MultipartDecoder { /* private fields */ }Expand description
Each part owns a real field stream. Consume/drop it before next_part; dropping an unread field lets multer discard it under the same size limits. The caller driving next_part OR the returned body drives the original input. On wasm only the private queue is Send; the original stream stays !Send.
Implementations§
Source§impl MultipartDecoder
impl MultipartDecoder
pub fn new( body: HttpBody, boundary: impl Into<String>, limits: CodecLimits, ) -> Result<Self, CodecError>
pub fn next_part( &mut self, ) -> CodecFuture<'_, Result<Option<MultipartPart>, CodecError>>
Auto Trait Implementations§
impl !RefUnwindSafe for MultipartDecoder
impl !UnwindSafe for MultipartDecoder
impl Freeze for MultipartDecoder
impl Send for MultipartDecoder
impl Sync for MultipartDecoder
impl Unpin for MultipartDecoder
impl UnsafeUnpin for MultipartDecoder
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