pub struct ResponseStream<'a, T> { /* private fields */ }Implementations§
Source§impl<'a, T> ResponseStream<'a, T>
impl<'a, T> ResponseStream<'a, T>
pub fn new(client: &mut Client<T>, cmd: Command) -> ResponseStream<'_, T>
pub async fn next(&mut self) -> Option<Result<ResponseData, Error>>
pub async fn try_collect(&mut self) -> Result<Vec<ResponseData>, Error>
pub async fn try_for_each<F, Fut>(&mut self, f: F) -> Result<(), Error>
pub async fn try_fold<S, Fut, F>(&mut self, state: S, f: F) -> Result<S, Error>
Auto Trait Implementations§
impl<'a, T> Freeze for ResponseStream<'a, T>
impl<'a, T> RefUnwindSafe for ResponseStream<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for ResponseStream<'a, T>where
T: Send,
impl<'a, T> Sync for ResponseStream<'a, T>where
T: Sync,
impl<'a, T> Unpin for ResponseStream<'a, T>
impl<'a, T> !UnwindSafe for ResponseStream<'a, T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more