Struct rouille::input::multipart::MultipartData[][src]

pub struct MultipartData<M> { /* fields omitted */ }

The data of a field in a multipart/form-data request.

You can read it to EOF, or use the save() adaptor to save it to disk/memory.

Implementations

impl<M> MultipartData<M> where
    M: ReadEntry
[src]

pub fn save(&mut self) -> SaveBuilder<&mut MultipartData<M>>[src]

Get a builder type which can save the field with or without a size limit.

pub fn into_inner(self) -> M[src]

Take the inner Multipart or &mut Multipart

pub fn set_min_buf_size(&mut self, min_buf_size: usize)[src]

Set the minimum buffer size that BufRead::fill_buf(self) will return until the end of the stream is reached. Set this as small as you can tolerate to minimize read() calls (read() won’t be called again until the buffer is smaller than this).

This value is reset between fields.

Trait Implementations

impl<M> BufRead for MultipartData<M> where
    M: ReadEntry
[src]

In this implementation, fill_buf() can return more data with each call.

Use set_min_buf_size() if you require a minimum buffer length.

impl<M> Debug for MultipartData<M> where
    M: Debug
[src]

impl<M> Read for MultipartData<M> where
    M: ReadEntry
[src]

Auto Trait Implementations

impl<M> RefUnwindSafe for MultipartData<M> where
    M: RefUnwindSafe

impl<M> Send for MultipartData<M> where
    M: Send

impl<M> Sync for MultipartData<M> where
    M: Sync

impl<M> Unpin for MultipartData<M> where
    M: Unpin

impl<M> UnwindSafe for MultipartData<M> where
    M: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<R> ReadBytesExt for R where
    R: Read + ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.