Trait AdvanceAsync

Source
pub trait AdvanceAsync {
    type Error;

    // Required method
    fn poll_advance(
        self: Pin<&mut Self>,
        cx: &mut Context<'_>,
    ) -> Poll<Result<(), Self::Error>>;
}

Required Associated Types§

Required Methods§

Source

fn poll_advance( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<(), Self::Error>>

Implementors§

Source§

impl<B, E, T, S> AdvanceAsync for IterSource<T, S>
where T: Clone + Unpin, B: AsRef<[T]>, S: Stream<Item = Result<B, E>> + Unpin,

Source§

type Error = E

Source§

impl<S> AdvanceAsync for ReadSource<u8, S>
where S: AsyncRead + Unpin,