pub trait ServerRequestStreamHandler: Send + 'static {
// Required methods
fn data_frame(&mut self, data: Bytes, end_stream: bool) -> Result<()>;
fn trailers(&mut self, trailers: Headers) -> Result<()>;
fn error(&mut self, error: Error) -> Result<()>;
// Provided method
fn rst(&mut self, error_code: ErrorCode) -> Result<()> { ... }
}Expand description
Synchronous callback of incoming data