[][src]Struct solicit::http::priority::SimplePrioritizer

pub struct SimplePrioritizer<'a, 'b, State> where
    State: SessionState + 'a, 
{ /* fields omitted */ }

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]

pub fn new(
    state: &'a mut State,
    buf: &'b mut [u8]
) -> SimplePrioritizer<'a, 'b, State>
[src]

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]

Auto Trait Implementations

impl<'a, 'b, State> RefUnwindSafe for SimplePrioritizer<'a, 'b, State> where
    State: RefUnwindSafe

impl<'a, 'b, State> Send for SimplePrioritizer<'a, 'b, State> where
    State: Send

impl<'a, 'b, State> Sync for SimplePrioritizer<'a, 'b, State> where
    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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.