Struct google_firebasedynamiclinks1::client::MultiPartReader [−][src]
pub struct MultiPartReader<'a> { /* fields omitted */ }
Expand description
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
Reserve memory for exactly the given amount of parts
pub fn add_part(
&mut self,
reader: &'a mut (dyn Read + Send),
size: u64,
mime_type: Mime
) -> &mut MultiPartReader<'a>ⓘNotable traits for MultiPartReader<'a>impl<'a> Read for MultiPartReader<'a>
pub fn add_part(
&mut self,
reader: &'a mut (dyn Read + Send),
size: u64,
mime_type: Mime
) -> &mut MultiPartReader<'a>ⓘNotable traits for MultiPartReader<'a>impl<'a> Read for MultiPartReader<'a>
impl<'a> Read for MultiPartReader<'a>
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
Trait Implementations
fn default() -> MultiPartReader<'a>ⓘNotable traits for MultiPartReader<'a>impl<'a> Read for MultiPartReader<'a>
fn default() -> MultiPartReader<'a>ⓘNotable traits for MultiPartReader<'a>impl<'a> Read for MultiPartReader<'a>
impl<'a> Read for MultiPartReader<'a>
Returns the “default value” for a type. Read more
Pull some bytes from this source into the specified buffer, returning how many bytes were read. Read more
Like read
, except that it reads into a slice of buffers. Read more
can_vector
)Determines if this Read
er has an efficient read_vectored
implementation. Read more
read_initializer
)Determines if this Read
er can work with buffers of uninitialized
memory. Read more
Read all bytes until EOF in this source, placing them into buf
. Read more
Read all bytes until EOF in this source, appending them to buf
. Read more
Read the exact number of bytes required to fill buf
. Read more
Creates a “by reference” adapter for this instance of Read
. Read more
Creates an adapter which will chain this stream with another. Read more