Trait solicit::http::priority::DataPrioritizer [] [src]

pub trait DataPrioritizer {
    fn get_next_chunk(&mut self) -> HttpResult<Option<DataChunk>>;
}

A trait that types that want to provide data to an HTTP/2 connection need to implement.

Required Methods

fn get_next_chunk(&mut self) -> HttpResult<Option<DataChunk>>

Returns the next DataChunk that should be sent on the HTTP/2 connection. None indicates that currently there was no data that could be sent at that point.

Implementors