[−][src]Struct solicit::http::priority::SimplePrioritizer
An implementation of the DataPrioritizer
trait that is based on finding the first stream from
the given SessionState
instance that can send data and returning this chunk.
For all means and purposes, the order of data chunks that the prioritizer returns is undefined and should not be relied on.
Implementations
impl<'a, 'b, State> SimplePrioritizer<'a, 'b, State> where
State: SessionState + 'a,
[src]
State: SessionState + 'a,
pub fn new(
state: &'a mut State,
buf: &'b mut [u8]
) -> SimplePrioritizer<'a, 'b, State>
[src]
state: &'a mut State,
buf: &'b mut [u8]
) -> SimplePrioritizer<'a, 'b, State>
Creates a new SimplePrioritizer
that will use the given state to find stream data that
should be sent and use the given buffer to hold the data of the returned chunk.
Trait Implementations
impl<'a, 'b, State> DataPrioritizer for SimplePrioritizer<'a, 'b, State> where
State: SessionState + 'a,
[src]
State: SessionState + 'a,
fn get_next_chunk(&mut self) -> HttpResult<Option<DataChunk>>
[src]
Auto Trait Implementations
impl<'a, 'b, State> RefUnwindSafe for SimplePrioritizer<'a, 'b, State> where
State: RefUnwindSafe,
State: RefUnwindSafe,
impl<'a, 'b, State> Send for SimplePrioritizer<'a, 'b, State> where
State: Send,
State: Send,
impl<'a, 'b, State> Sync for SimplePrioritizer<'a, 'b, State> where
State: Sync,
State: Sync,
impl<'a, 'b, State> Unpin for SimplePrioritizer<'a, 'b, State>
impl<'a, 'b, State> !UnwindSafe for SimplePrioritizer<'a, 'b, State>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,