[][src]Struct solicit::http::client::ClientSession

pub struct ClientSession<'a, State, S> where
    State: SessionState + 'a,
    S: SendFrame + 'a, 
{ /* fields omitted */ }

An implementation of the Session trait specific to handling client HTTP/2 connections.

While handling the events signaled by the HttpConnection, the struct will modify the given session state appropriately.

The purpose of the type is to make it easier for client implementations to only handle stream-level events by providing a Stream implementation, instead of having to implement all session management callbacks.

For example, by varying the Stream implementation it is easy to implement a client that streams responses directly into a file on the local file system, instead of keeping it in memory (like the DefaultStream does), without having to change any HTTP/2-specific logic.

Implementations

impl<'a, State, S> ClientSession<'a, State, S> where
    State: SessionState + 'a,
    S: SendFrame + 'a, 
[src]

pub fn new(
    state: &'a mut State,
    sender: &'a mut S
) -> ClientSession<'a, State, S>
[src]

Returns a new ClientSession associated to the given state.

Trait Implementations

impl<'a, State, S> Session for ClientSession<'a, State, S> where
    State: SessionState + 'a,
    S: SendFrame + 'a, 
[src]

Auto Trait Implementations

impl<'a, State, S> RefUnwindSafe for ClientSession<'a, State, S> where
    S: RefUnwindSafe,
    State: RefUnwindSafe

impl<'a, State, S> Send for ClientSession<'a, State, S> where
    S: Send,
    State: Send

impl<'a, State, S> Sync for ClientSession<'a, State, S> where
    S: Sync,
    State: Sync

impl<'a, State, S> Unpin for ClientSession<'a, State, S>

impl<'a, State, S> !UnwindSafe for ClientSession<'a, State, S>

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.