Struct panorama_imap::client::inner::ResponseStream[][src]

pub struct ResponseStream {
    pub(crate) inner: UnboundedReceiver<Response>,
}

Fields

inner: UnboundedReceiver<Response>

Implementations

impl ResponseStream[src]

pub async fn done(self) -> Result<Option<ResponseDone>>[src]

Retrieves just the DONE item in the stream, discarding the rest

pub async fn wait(self) -> Result<(Option<ResponseDone>, Vec<Response>)>[src]

Waits for the entire stream to finish, returning the DONE status and the stream

Trait Implementations

impl Stream for ResponseStream[src]

type Item = Response

Values yielded by the stream.

Auto Trait Implementations

impl !RefUnwindSafe for ResponseStream[src]

impl Send for ResponseStream[src]

impl Sync for ResponseStream[src]

impl Unpin for ResponseStream[src]

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

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

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.