[][src]Struct multipart::server::MultipartData

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 Self>[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: ReadEntry> BufRead for MultipartData<M>[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> Debug for MultipartData<M>[src]

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

Auto Trait Implementations

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

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

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

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

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

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> DebugAny for T where
    T: Any + Debug

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.

impl<T> Typeable for T where
    T: Any

impl<T> UnsafeAny for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,