[][src]Struct google_appengine1_beta5::MultiPartReader

pub struct MultiPartReader<'a> { /* fields omitted */ }

Provides a Read interface that converts multiple parts into the protocol identified by RFC2387. Note: This implementation is just as rich as it needs to be to perform uploads to google APIs, and might not be a fully-featured implementation.

Implementations

impl<'a> MultiPartReader<'a>[src]

pub fn reserve_exact(&mut self, cap: usize)[src]

Reserve memory for exactly the given amount of parts

pub fn add_part(
    &mut self,
    reader: &'a mut dyn Read,
    size: u64,
    mime_type: Mime
) -> &mut MultiPartReader<'a>
[src]

Add a new part to the queue of parts to be read on the first read call.

Arguments

headers - identifying the body of the part. It's similar to the header in an ordinary single-part call, and should thus contain the same information. reader - a reader providing the part's body size - the amount of bytes provided by the reader. It will be put onto the header as content-size. mime - It will be put onto the content type

pub fn mime_type(&self) -> Mime[src]

Returns the mime-type representing our multi-part message. Use it with the ContentType header.

Trait Implementations

impl<'a> Default for MultiPartReader<'a>[src]

impl<'a> Read for MultiPartReader<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for MultiPartReader<'a>

impl<'a> !Send for MultiPartReader<'a>

impl<'a> !Sync for MultiPartReader<'a>

impl<'a> Unpin for MultiPartReader<'a>

impl<'a> !UnwindSafe for MultiPartReader<'a>

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.

impl<T> Typeable for T where
    T: Any