ErasedStream

Trait ErasedStream 

Source
pub trait ErasedStream {
    // Required method
    fn poll_next_bytes(
        self: Pin<&mut Self>,
        cx: &mut Context<'_>,
    ) -> Poll<Option<Result<Vec<u8>, String>>>;
}
Expand description

Type-erased stream trait for dispatch results.

Required Methods§

Source

fn poll_next_bytes( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Option<Result<Vec<u8>, String>>>

Get the next item as serialized bytes.

Implementors§