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

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

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