[][src]Struct mpart_async::MultipartRequest

pub struct MultipartRequest<S> { /* fields omitted */ }

Methods

impl MultipartRequest<FileStream>[src]

pub fn add_file<I: Into<String>, P: Into<PathBuf>>(&mut self, name: I, path: P)[src]

impl<E, S> MultipartRequest<S> where
    S: Stream<Item = Result<Bytes, E>> + Unpin
[src]

pub fn new<I: Into<String>>(boundary: I) -> Self[src]

pub fn add_stream<I: Into<String>>(
    &mut self,
    name: I,
    filename: I,
    content_type: I,
    stream: S
)
[src]

pub fn add_field<I: Into<String>>(&mut self, name: I, value: I)[src]

pub fn get_boundary(&self) -> &str[src]

Trait Implementations

impl<E, S> Default for MultipartRequest<S> where
    S: Stream<Item = Result<Bytes, E>> + Unpin
[src]

impl<E, S: Stream> Stream for MultipartRequest<S> where
    S: Stream<Item = Result<Bytes, E>> + Unpin
[src]

type Item = Result<Bytes, E>

Values yielded by the stream.

Auto Trait Implementations

impl<S> RefUnwindSafe for MultipartRequest<S> where
    S: RefUnwindSafe

impl<S> Send for MultipartRequest<S> where
    S: Send

impl<S> Sync for MultipartRequest<S> where
    S: Sync

impl<S> Unpin for MultipartRequest<S> where
    S: Unpin

impl<S> UnwindSafe for MultipartRequest<S> where
    S: 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<T> StreamExt for T where
    T: Stream + ?Sized
[src]

impl<St> StreamExt for St where
    St: Stream + ?Sized
[src]

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<S, T, E> TryStream for S where
    S: Stream<Item = Result<T, E>> + ?Sized
[src]

type Ok = T

The type of successful values yielded by this future

type Error = E

The type of failures yielded by this future

impl<S> TryStreamExt for S where
    S: TryStream + ?Sized
[src]

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