[][src]Struct solicit::http::session::DefaultSessionState

pub struct DefaultSessionState<S> where
    S: Stream
{ /* fields omitted */ }

An implementation of the SessionState trait that tracks the active streams in a HashMap, mapping the stream ID to the concrete Stream instance.

Methods

impl<S> DefaultSessionState<S> where
    S: Stream
[src]

Creates a new DefaultSessionState with no known streams.

Trait Implementations

impl<S> SessionState for DefaultSessionState<S> where
    S: Stream
[src]

The type of the Stream that the SessionState manages.

Inserts the given Stream into the session's state, starting to track it.

Returns a reference to a Stream with the given StreamId, if it is found in the current session. Read more

Returns a mutable reference to a Stream with the given StreamId, if it is found in the current session. Read more

Removes the stream with the given StreamId from the session. If the stream was found in the session, it is returned in the result. Read more

Important traits for StreamIter<'a, S>

Returns an iterator over the streams currently found in the session.

Returns all streams that are closed and tracked by the session state. Read more

Auto Trait Implementations

impl<S> Send for DefaultSessionState<S> where
    S: Send

impl<S> Sync for DefaultSessionState<S> where
    S: Sync

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

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

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

Immutably borrows from an owned value. Read more

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

Mutably borrows from an owned value. Read more

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more