pub struct Http2StreamParser { /* private fields */ }Expand description
HTTP/2 stream parser
Implementations§
Source§impl Http2StreamParser
impl Http2StreamParser
pub fn new() -> Self
Sourcepub fn remove_connection(&self, connection_id: u64)
pub fn remove_connection(&self, connection_id: u64)
Remove state for a closed connection
Trait Implementations§
Source§impl Default for Http2StreamParser
impl Default for Http2StreamParser
Source§impl StreamParser for Http2StreamParser
impl StreamParser for Http2StreamParser
Source§fn display_name(&self) -> &'static str
fn display_name(&self) -> &'static str
Human-readable name.
Source§fn can_parse_stream(&self, context: &StreamContext) -> bool
fn can_parse_stream(&self, context: &StreamContext) -> bool
Check if this parser can handle the stream based on context.
Source§fn parse_stream(
&self,
data: &[u8],
context: &StreamContext,
) -> StreamParseResult
fn parse_stream( &self, data: &[u8], context: &StreamContext, ) -> StreamParseResult
Parse from reassembled stream bytes. Read more
Source§fn message_schema(&self) -> Vec<FieldDescriptor>
fn message_schema(&self) -> Vec<FieldDescriptor>
Schema for messages produced by this parser.
Auto Trait Implementations§
impl Freeze for Http2StreamParser
impl RefUnwindSafe for Http2StreamParser
impl Send for Http2StreamParser
impl Sync for Http2StreamParser
impl Unpin for Http2StreamParser
impl UnwindSafe for Http2StreamParser
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more