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

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.

Loading content...

Implementors

impl<'a, 'b, State> DataPrioritizer for SimplePrioritizer<'a, 'b, State> where
    State: SessionState + 'a, 
[src]

Loading content...