Skip to main content

stream_logs

Function stream_logs 

Source
async fn stream_logs<H: BlockHeader>(
    output: &mut impl Write,
    logs: impl Stream<Item = Log> + Unpin,
    blocks: Option<impl Stream<Item = H> + Unpin>,
    to_block: Option<u64>,
    event: Option<&Event>,
    cancel: impl Future,
) -> Result<()>
Expand description

Writes the logs of logs to output until the stream ends, blocks passes to_block, or cancel resolves.