[][src]Struct graph_http::UploadSessionClient

pub struct UploadSessionClient<C> { /* fields omitted */ }

Implementations

impl<C> UploadSessionClient<C>[src]

pub fn from_range<P: AsRef<Path>>(
    &mut self,
    start: u64,
    end: u64,
    file: P
) -> GraphResult<()>
[src]

pub fn has_next(&self) -> bool[src]

impl UploadSessionClient<BlockingHttpClient>[src]

pub fn new(
    upload_session: Value
) -> GraphResult<UploadSessionClient<BlockingHttpClient>>
[src]

pub fn set_file<P: AsRef<Path>>(&mut self, file: P) -> GraphResult<()>[src]

pub fn cancel(&mut self) -> RequestBuilder[src]

pub fn status(&mut self) -> GraphResult<Response>[src]

impl UploadSessionClient<AsyncHttpClient>[src]

pub fn new_async(
    upload_session: Value
) -> GraphResult<UploadSessionClient<AsyncHttpClient>>
[src]

pub async fn set_file<P: AsRef<Path>>(&mut self, file: P) -> GraphResult<()>[src]

pub async fn cancel(&mut self) -> RequestBuilder[src]

pub async fn status(&mut self) -> GraphResult<Response>[src]

Trait Implementations

impl AsyncIterator for UploadSessionClient<AsyncHttpClient>[src]

type Item = GraphResult<NextSession>

impl<C> Debug for UploadSessionClient<C>[src]

impl Iterator for UploadSessionClient<BlockingHttpClient>[src]

type Item = GraphResult<NextSession>

The type of the elements being iterated over.

Auto Trait Implementations

impl<C> RefUnwindSafe for UploadSessionClient<C> where
    C: RefUnwindSafe
[src]

impl<C> Send for UploadSessionClient<C> where
    C: Send
[src]

impl<C> Sync for UploadSessionClient<C> where
    C: Sync
[src]

impl<C> Unpin for UploadSessionClient<C> where
    C: Unpin
[src]

impl<C> UnwindSafe for UploadSessionClient<C> where
    C: UnwindSafe
[src]

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> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

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.