Struct google_dataproc1::client::MultiPartReader [−][src]
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>ⓘNotable traits for MultiPartReader<'a>
impl<'a> Read for MultiPartReader<'a>
[src]
&mut self,
reader: &'a mut dyn Read,
size: u64,
mime_type: Mime
) -> &mut MultiPartReader<'a>ⓘ
Notable traits 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
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]
fn default() -> MultiPartReader<'a>ⓘNotable traits for MultiPartReader<'a>
impl<'a> Read for MultiPartReader<'a>
[src]
Notable traits for MultiPartReader<'a>
impl<'a> Read for MultiPartReader<'a>
impl<'a> Read for MultiPartReader<'a>
[src]
fn read(&mut self, buf: &mut [u8]) -> Result<usize>
[src]
pub fn read_vectored(
&mut self,
bufs: &mut [IoSliceMut<'_>]
) -> Result<usize, Error>
1.36.0[src]
&mut self,
bufs: &mut [IoSliceMut<'_>]
) -> Result<usize, Error>
pub fn is_read_vectored(&self) -> bool
[src]
pub unsafe fn initializer(&self) -> Initializer
[src]
pub fn read_to_end(&mut self, buf: &mut Vec<u8, Global>) -> Result<usize, Error>
1.0.0[src]
pub fn read_to_string(&mut self, buf: &mut String) -> Result<usize, Error>
1.0.0[src]
pub fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), Error>
1.6.0[src]
pub fn by_ref(&mut self) -> &mut Self
1.0.0[src]
pub fn bytes(self) -> Bytes<Self>
1.0.0[src]
pub fn chain<R>(self, next: R) -> Chain<Self, R> where
R: Read,
1.0.0[src]
R: Read,
pub fn take(self, limit: u64) -> Take<Self>
1.0.0[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]
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[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>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,