Struct mpart_async::server::MultipartParser
source · [−]pub struct MultipartParser<S, E> where
S: Stream<Item = Result<Bytes, E>>,
E: Into<Box<dyn StdError + Send + Sync + 'static>>, { /* private fields */ }
Expand description
A low-level parser which MultipartStream
uses.
Returns either headers of a field or a byte chunk, alternating between the two types
Unless there is an issue with using MultipartStream
you don’t normally want to use this struct
Implementations
Trait Implementations
sourceimpl<S, E> Stream for MultipartParser<S, E> where
S: Stream<Item = Result<Bytes, E>>,
E: Into<Box<dyn StdError + Send + Sync + 'static>>,
impl<S, E> Stream for MultipartParser<S, E> where
S: Stream<Item = Result<Bytes, E>>,
E: Into<Box<dyn StdError + Send + Sync + 'static>>,
type Item = Result<ParseOutput, MultipartError>
type Item = Result<ParseOutput, MultipartError>
Values yielded by the stream.
impl<'__pin, S, E> Unpin for MultipartParser<S, E> where
__Origin<'__pin, S, E>: Unpin,
S: Stream<Item = Result<Bytes, E>>,
E: Into<Box<dyn StdError + Send + Sync + 'static>>,
Auto Trait Implementations
impl<S, E> RefUnwindSafe for MultipartParser<S, E> where
S: RefUnwindSafe,
impl<S, E> Send for MultipartParser<S, E> where
S: Send,
impl<S, E> Sync for MultipartParser<S, E> where
S: Sync,
impl<S, E> UnwindSafe for MultipartParser<S, E> where
S: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more