pub struct ParseUpload { /* private fields */ }Expand description
Collects an upload’s messages back into one parse result, as they arrive.
Implementations§
Source§impl ParseUpload
impl ParseUpload
Sourcepub fn add(&mut self, part: ParseResultPart) -> Result<(), ConversionError>
pub fn add(&mut self, part: ParseResultPart) -> Result<(), ConversionError>
Takes the next message.
§Errors
ConversionError::BadUpload when the first message isn’t the header, a later one is,
or one is empty.
Sourcepub fn finish(self) -> Result<ParseResult, ConversionError>
pub fn finish(self) -> Result<ParseResult, ConversionError>
Trait Implementations§
Source§impl Debug for ParseUpload
impl Debug for ParseUpload
Source§impl Default for ParseUpload
impl Default for ParseUpload
Source§fn default() -> ParseUpload
fn default() -> ParseUpload
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ParseUpload
impl RefUnwindSafe for ParseUpload
impl Send for ParseUpload
impl Sync for ParseUpload
impl Unpin for ParseUpload
impl UnsafeUnpin for ParseUpload
impl UnwindSafe for ParseUpload
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].