Struct lexoffice::request::stream::PageStream[][src]

pub struct PageStream<T, S> where
    RequestWithState<T, S>: Paginated + Clone + Endpoint,
    T: DeserializeOwned + Clone,
    S: Sync + Send + Clone + 'static, 
{ /* fields omitted */ }

Stream that allows to view multiple pages as contiguous stream of Page items T.

Trait Implementations

impl<T, S> From<RequestWithState<T, S>> for PageStream<T, S> where
    RequestWithState<T, S>: Paginated + Clone + Endpoint,
    T: DeserializeOwned + Sync + Send + Clone + 'static,
    S: Sync + Send + Clone + 'static, 
[src]

impl<T, S> Stream for PageStream<T, S> where
    RequestWithState<T, S>: Endpoint + Paginated + Unpin + Sync + Send + Clone,
    T: DeserializeOwned + Unpin + Send + Sync + Clone + 'static,
    S: Sync + Send + Clone + 'static, 
[src]

type Item = Result<T>

Values yielded by the stream.

Auto Trait Implementations

impl<T, S> !RefUnwindSafe for PageStream<T, S>

impl<T, S> Send for PageStream<T, S> where
    T: Send

impl<T, S> !Sync for PageStream<T, S>

impl<T, S> Unpin for PageStream<T, S> where
    S: Unpin,
    T: Unpin

impl<T, S> !UnwindSafe for PageStream<T, S>

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, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StreamExt for T where
    T: Stream + ?Sized

impl<St> StreamExt for St where
    St: Stream + ?Sized
[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.

impl<S, T, E> TryStream for S where
    S: Stream<Item = Result<T, E>> + ?Sized

type Ok = T

The type of successful values yielded by this future

type Error = E

The type of failures yielded by this future

impl<S> TryStreamExt for S where
    S: TryStream + ?Sized