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

pub struct DefaultSessionState<T, 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.

Implementations

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

pub fn new() -> DefaultSessionState<Client, S>[src]

Creates a new DefaultSessionState for a client session with no known streams.

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

pub fn new() -> DefaultSessionState<Server, S>[src]

Creates a new DefaultSessionState for a server session with no known streams.

Trait Implementations

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

type Stream = S

The type of the Stream that the SessionState manages.

fn len(&self) -> usize[src]

Number of currently active streams

Auto Trait Implementations

impl<T, S> RefUnwindSafe for DefaultSessionState<T, S> where
    S: RefUnwindSafe,
    T: RefUnwindSafe

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

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

impl<T, S> Unpin for DefaultSessionState<T, S> where
    S: Unpin,
    T: Unpin

impl<T, S> UnwindSafe for DefaultSessionState<T, S> where
    S: UnwindSafe,
    T: UnwindSafe

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.