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

pub struct DefaultSessionState<S> where S: Stream {
    // some 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

fn new() -> DefaultSessionState<S>

Creates a new DefaultSessionState with no known streams.

Trait Implementations

impl<S> SessionState for DefaultSessionState<S> where S: Stream

type Stream = S

fn insert_stream(&mut self, stream: Self::Stream)

fn get_stream_ref(&self, stream_id: StreamId) -> Option<&Self::Stream>

fn get_stream_mut(&mut self, stream_id: StreamId) -> Option<&mut Self::Stream>

fn remove_stream(&mut self, stream_id: StreamId) -> Option<Self::Stream>

fn iter(&mut self) -> StreamIter<S>

fn get_closed(&mut self) -> Vec<Self::Stream>