Struct tame_gcs::objects::Multipart[][src]

pub struct Multipart<B> { /* fields omitted */ }

A multipart payload that should be used as the body of a multipart insert request

Implementations

impl<B> Multipart<B>[src]

pub fn wrap(
    body: B,
    body_length: u64,
    metadata: &Metadata
) -> Result<Self, Error>
[src]

Wraps some body content and its metadata into a Multipart suitable for being sent as an HTTP request body, the body will need to implement std::io::Read to be able to be used as intended.

pub fn total_len(&self) -> u64[src]

The total length (Content-Length) of this multipart body

Trait Implementations

impl<B: AsyncRead + Unpin> AsyncRead for Multipart<B>[src]

impl<B> Read for Multipart<B> where
    B: Read
[src]

Auto Trait Implementations

impl<B> RefUnwindSafe for Multipart<B> where
    B: RefUnwindSafe

impl<B> Send for Multipart<B> where
    B: Send

impl<B> Sync for Multipart<B> where
    B: Sync

impl<B> Unpin for Multipart<B> where
    B: Unpin

impl<B> UnwindSafe for Multipart<B> where
    B: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<R> AsyncReadExt for R where
    R: AsyncRead + ?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, 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.