[−][src]Struct solicit::http::server::ServerSession
An implementation of the Session
trait for a server-side HTTP/2 connection.
Implementations
impl<'a, State, F, S> ServerSession<'a, State, F, S> where
State: SessionState + 'a,
S: SendFrame + 'a,
F: StreamFactory<Stream = State::Stream> + 'a,
[src]
State: SessionState + 'a,
S: SendFrame + 'a,
F: StreamFactory<Stream = State::Stream> + 'a,
pub fn new(
state: &'a mut State,
factory: &'a mut F,
sender: &'a mut S
) -> ServerSession<'a, State, F, S>
[src]
state: &'a mut State,
factory: &'a mut F,
sender: &'a mut S
) -> ServerSession<'a, State, F, S>
Trait Implementations
impl<'a, State, F, S> Session for ServerSession<'a, State, F, S> where
State: SessionState + 'a,
S: SendFrame + 'a,
F: StreamFactory<Stream = State::Stream> + 'a,
[src]
State: SessionState + 'a,
S: SendFrame + 'a,
F: StreamFactory<Stream = State::Stream> + 'a,
fn new_data_chunk(
&mut self,
stream_id: StreamId,
data: &[u8],
_: &mut HttpConnection
) -> HttpResult<()>
[src]
&mut self,
stream_id: StreamId,
data: &[u8],
_: &mut HttpConnection
) -> HttpResult<()>
fn new_headers<'n, 'v>(
&mut self,
stream_id: StreamId,
headers: Vec<Header<'n, 'v>>,
_conn: &mut HttpConnection
) -> HttpResult<()>
[src]
&mut self,
stream_id: StreamId,
headers: Vec<Header<'n, 'v>>,
_conn: &mut HttpConnection
) -> HttpResult<()>
fn end_of_stream(
&mut self,
stream_id: StreamId,
_: &mut HttpConnection
) -> HttpResult<()>
[src]
&mut self,
stream_id: StreamId,
_: &mut HttpConnection
) -> HttpResult<()>
fn rst_stream(
&mut self,
stream_id: StreamId,
error_code: ErrorCode,
_: &mut HttpConnection
) -> HttpResult<()>
[src]
&mut self,
stream_id: StreamId,
error_code: ErrorCode,
_: &mut HttpConnection
) -> HttpResult<()>
fn new_settings(
&mut self,
_settings: Vec<HttpSetting>,
conn: &mut HttpConnection
) -> HttpResult<()>
[src]
&mut self,
_settings: Vec<HttpSetting>,
conn: &mut HttpConnection
) -> HttpResult<()>
fn on_ping(
&mut self,
ping: &PingFrame,
conn: &mut HttpConnection
) -> HttpResult<()>
[src]
&mut self,
ping: &PingFrame,
conn: &mut HttpConnection
) -> HttpResult<()>
fn on_pong(
&mut self,
_ping: &PingFrame,
_conn: &mut HttpConnection
) -> HttpResult<()>
[src]
&mut self,
_ping: &PingFrame,
_conn: &mut HttpConnection
) -> HttpResult<()>
fn on_goaway(
&mut self,
_last_stream_id: StreamId,
error_code: ErrorCode,
debug_data: Option<&[u8]>,
_conn: &mut HttpConnection
) -> HttpResult<()>
[src]
&mut self,
_last_stream_id: StreamId,
error_code: ErrorCode,
debug_data: Option<&[u8]>,
_conn: &mut HttpConnection
) -> HttpResult<()>
Auto Trait Implementations
impl<'a, State, F, S> RefUnwindSafe for ServerSession<'a, State, F, S> where
F: RefUnwindSafe,
S: RefUnwindSafe,
State: RefUnwindSafe,
F: RefUnwindSafe,
S: RefUnwindSafe,
State: RefUnwindSafe,
impl<'a, State, F, S> Send for ServerSession<'a, State, F, S> where
F: Send,
S: Send,
State: Send,
F: Send,
S: Send,
State: Send,
impl<'a, State, F, S> Sync for ServerSession<'a, State, F, S> where
F: Sync,
S: Sync,
State: Sync,
F: Sync,
S: Sync,
State: Sync,
impl<'a, State, F, S> Unpin for ServerSession<'a, State, F, S>
impl<'a, State, F, S> !UnwindSafe for ServerSession<'a, State, F, S>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,