[−][src]Struct multipart::server::MultipartData
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.
Methods
impl<M> MultipartData<M> where
M: ReadEntry,
[src][−]
M: ReadEntry,
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][+]
fn fill_buf(&mut self) -> Result<&[u8]>
[src][−]
fn consume(&mut self, amt: usize)
[src][−]
fn read_until(&mut self, byte: u8, buf: &mut Vec<u8>) -> Result<usize, Error>
1.0.0[src][−]
fn read_line(&mut self, buf: &mut String) -> Result<usize, Error>
1.0.0[src][−]
fn split(self, byte: u8) -> Split<Self>
1.0.0[src][−]
fn lines(self) -> Lines<Self>
1.0.0[src][−]
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,
M: RefUnwindSafe,
impl<M> Send for MultipartData<M> where
M: Send,
M: Send,
impl<M> Sync for MultipartData<M> where
M: Sync,
M: Sync,
impl<M> Unpin for MultipartData<M> where
M: Unpin,
M: Unpin,
impl<M> UnwindSafe for MultipartData<M> where
M: UnwindSafe,
M: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,