Struct solicit::http::server::ServerSession [−][src]
pub struct ServerSession<'a, State> where
State: SessionState + 'a, { /* fields omitted */ }
An implementation of the Session
trait for a server-side HTTP/2 connection.
Methods
impl<'a, State> ServerSession<'a, State> where
State: SessionState + 'a,
[src]
impl<'a, State> ServerSession<'a, State> where
State: SessionState + 'a,
pub fn new(state: &'a mut State) -> ServerSession<State>
[src]
pub fn new(state: &'a mut State) -> ServerSession<State>
Trait Implementations
impl<'a, State> Session for ServerSession<'a, State> where
State: SessionState + 'a,
[src]
impl<'a, State> Session for ServerSession<'a, State> where
State: SessionState + 'a,
fn new_data_chunk(&mut self, stream_id: StreamId, data: &[u8])
[src]
fn new_data_chunk(&mut self, stream_id: StreamId, data: &[u8])
Notifies the Session
that a new data chunk has arrived on the connection for a particular stream. Only the raw data is passed to the callback (all padding is already discarded by the connection). Read more
fn new_headers(&mut self, stream_id: StreamId, headers: Vec<Header>)
[src]
fn new_headers(&mut self, stream_id: StreamId, headers: Vec<Header>)
Notifies the Session
that headers have arrived for a particular stream. The given list of headers is already decoded by the connection. Read more
fn end_of_stream(&mut self, stream_id: StreamId)
[src]
fn end_of_stream(&mut self, stream_id: StreamId)
Notifies the Session
that a particular stream got closed by the peer.
Auto Trait Implementations
impl<'a, State> Send for ServerSession<'a, State> where
State: Send,
impl<'a, State> Send for ServerSession<'a, State> where
State: Send,
impl<'a, State> Sync for ServerSession<'a, State> where
State: Sync,
impl<'a, State> Sync for ServerSession<'a, State> where
State: Sync,