Trait FrameDecoder

Source
pub trait FrameDecoder<'a, AckRanges, Data: DecoderValueMut<'a>>
where Ack<AckRanges>: DecoderParameterizedValueMut<'a, Parameter = u8>,
{ type Output;
Show 24 methods // Required methods fn handle_padding_frame( &mut self, frame: Padding, ) -> Result<Self::Output, DecoderError>; fn handle_ping_frame( &mut self, frame: Ping, ) -> Result<Self::Output, DecoderError>; fn handle_ack_frame( &mut self, frame: Ack<AckRanges>, ) -> Result<Self::Output, DecoderError>; fn handle_reset_stream_frame( &mut self, frame: ResetStream, ) -> Result<Self::Output, DecoderError>; fn handle_stop_sending_frame( &mut self, frame: StopSending, ) -> Result<Self::Output, DecoderError>; fn handle_crypto_frame( &mut self, frame: Crypto<Data>, ) -> Result<Self::Output, DecoderError>; fn handle_new_token_frame( &mut self, frame: NewToken<'a>, ) -> Result<Self::Output, DecoderError>; fn handle_stream_frame( &mut self, frame: Stream<Data>, ) -> Result<Self::Output, DecoderError>; fn handle_max_data_frame( &mut self, frame: MaxData, ) -> Result<Self::Output, DecoderError>; fn handle_max_stream_data_frame( &mut self, frame: MaxStreamData, ) -> Result<Self::Output, DecoderError>; fn handle_max_streams_frame( &mut self, frame: MaxStreams, ) -> Result<Self::Output, DecoderError>; fn handle_data_blocked_frame( &mut self, frame: DataBlocked, ) -> Result<Self::Output, DecoderError>; fn handle_stream_data_blocked_frame( &mut self, frame: StreamDataBlocked, ) -> Result<Self::Output, DecoderError>; fn handle_streams_blocked_frame( &mut self, frame: StreamsBlocked, ) -> Result<Self::Output, DecoderError>; fn handle_new_connection_id_frame( &mut self, frame: NewConnectionId<'a>, ) -> Result<Self::Output, DecoderError>; fn handle_retire_connection_id_frame( &mut self, frame: RetireConnectionId, ) -> Result<Self::Output, DecoderError>; fn handle_path_challenge_frame( &mut self, frame: PathChallenge<'a>, ) -> Result<Self::Output, DecoderError>; fn handle_path_response_frame( &mut self, frame: PathResponse<'a>, ) -> Result<Self::Output, DecoderError>; fn handle_connection_close_frame( &mut self, frame: ConnectionClose<'a>, ) -> Result<Self::Output, DecoderError>; fn handle_handshake_done_frame( &mut self, frame: HandshakeDone, ) -> Result<Self::Output, DecoderError>; fn handle_datagram_frame( &mut self, frame: Datagram<Data>, ) -> Result<Self::Output, DecoderError>; fn handle_dc_stateless_reset_tokens_frame( &mut self, frame: DcStatelessResetTokens<'a>, ) -> Result<Self::Output, DecoderError>; // Provided methods fn handle_extension_frame( &mut self, buffer: DecoderBufferMut<'a>, ) -> DecoderBufferMutResult<'a, Self::Output> { ... } fn decode_frame( &mut self, buffer: DecoderBufferMut<'a>, ) -> DecoderBufferMutResult<'a, Self::Output> { ... }
}

Required Associated Types§

Required Methods§

Source

fn handle_padding_frame( &mut self, frame: Padding, ) -> Result<Self::Output, DecoderError>

Source

fn handle_ping_frame( &mut self, frame: Ping, ) -> Result<Self::Output, DecoderError>

Source

fn handle_ack_frame( &mut self, frame: Ack<AckRanges>, ) -> Result<Self::Output, DecoderError>

Source

fn handle_reset_stream_frame( &mut self, frame: ResetStream, ) -> Result<Self::Output, DecoderError>

Source

fn handle_stop_sending_frame( &mut self, frame: StopSending, ) -> Result<Self::Output, DecoderError>

Source

fn handle_crypto_frame( &mut self, frame: Crypto<Data>, ) -> Result<Self::Output, DecoderError>

Source

fn handle_new_token_frame( &mut self, frame: NewToken<'a>, ) -> Result<Self::Output, DecoderError>

Source

fn handle_stream_frame( &mut self, frame: Stream<Data>, ) -> Result<Self::Output, DecoderError>

Source

fn handle_max_data_frame( &mut self, frame: MaxData, ) -> Result<Self::Output, DecoderError>

Source

fn handle_max_stream_data_frame( &mut self, frame: MaxStreamData, ) -> Result<Self::Output, DecoderError>

Source

fn handle_max_streams_frame( &mut self, frame: MaxStreams, ) -> Result<Self::Output, DecoderError>

Source

fn handle_data_blocked_frame( &mut self, frame: DataBlocked, ) -> Result<Self::Output, DecoderError>

Source

fn handle_stream_data_blocked_frame( &mut self, frame: StreamDataBlocked, ) -> Result<Self::Output, DecoderError>

Source

fn handle_streams_blocked_frame( &mut self, frame: StreamsBlocked, ) -> Result<Self::Output, DecoderError>

Source

fn handle_new_connection_id_frame( &mut self, frame: NewConnectionId<'a>, ) -> Result<Self::Output, DecoderError>

Source

fn handle_retire_connection_id_frame( &mut self, frame: RetireConnectionId, ) -> Result<Self::Output, DecoderError>

Source

fn handle_path_challenge_frame( &mut self, frame: PathChallenge<'a>, ) -> Result<Self::Output, DecoderError>

Source

fn handle_path_response_frame( &mut self, frame: PathResponse<'a>, ) -> Result<Self::Output, DecoderError>

Source

fn handle_connection_close_frame( &mut self, frame: ConnectionClose<'a>, ) -> Result<Self::Output, DecoderError>

Source

fn handle_handshake_done_frame( &mut self, frame: HandshakeDone, ) -> Result<Self::Output, DecoderError>

Source

fn handle_datagram_frame( &mut self, frame: Datagram<Data>, ) -> Result<Self::Output, DecoderError>

Source

fn handle_dc_stateless_reset_tokens_frame( &mut self, frame: DcStatelessResetTokens<'a>, ) -> Result<Self::Output, DecoderError>

Provided Methods§

Source

fn handle_extension_frame( &mut self, buffer: DecoderBufferMut<'a>, ) -> DecoderBufferMutResult<'a, Self::Output>

Source

fn decode_frame( &mut self, buffer: DecoderBufferMut<'a>, ) -> DecoderBufferMutResult<'a, Self::Output>

Implementors§