pub enum StreamCtlFrame {
ResetStream(ResetStreamFrame),
StopSending(StopSendingFrame),
MaxStreamData(MaxStreamDataFrame),
MaxStreams(MaxStreamsFrame),
StreamDataBlocked(StreamDataBlockedFrame),
StreamsBlocked(StreamsBlockedFrame),
}Expand description
Sum type of all the stream related frames except StreamFrame.
Variants§
ResetStream(ResetStreamFrame)
RESET_STREAM frame, see ResetStreamFrame.
StopSending(StopSendingFrame)
STOP_SENDING frame, see StopSendingFrame.
MaxStreamData(MaxStreamDataFrame)
MAX_STREAM_DATA frame, see MaxStreamDataFrame.
MaxStreams(MaxStreamsFrame)
MAX_STREAMS frame, see MaxStreamsFrame.
StreamDataBlocked(StreamDataBlockedFrame)
STREAM_DATA_BLOCKED frame, see StreamDataBlockedFrame.
StreamsBlocked(StreamsBlockedFrame)
STREAMS_BLOCKED frame, see StreamsBlockedFrame.
Trait Implementations§
Source§impl Clone for StreamCtlFrame
impl Clone for StreamCtlFrame
Source§fn clone(&self) -> StreamCtlFrame
fn clone(&self) -> StreamCtlFrame
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for StreamCtlFrame
Source§impl Debug for StreamCtlFrame
impl Debug for StreamCtlFrame
Source§impl EncodeSize for StreamCtlFrame
impl EncodeSize for StreamCtlFrame
Source§fn max_encoding_size(&self) -> usize
fn max_encoding_size(&self) -> usize
Return the max number of bytes needed to encode this value
Calculate the maximum size by summing up the maximum length of each field. If a field type has a maximum length, use it, otherwise use the actual length of the data in that field.
When packaging data, by pre-estimating this value to effectively avoid spending extra resources to calculate the actual encoded size.
Source§fn encoding_size(&self) -> usize
fn encoding_size(&self) -> usize
Return the exact number of bytes needed to encode this value
impl Eq for StreamCtlFrame
Source§impl From<MaxStreamDataFrame> for StreamCtlFrame
impl From<MaxStreamDataFrame> for StreamCtlFrame
Source§fn from(v: MaxStreamDataFrame) -> StreamCtlFrame
fn from(v: MaxStreamDataFrame) -> StreamCtlFrame
Source§impl From<MaxStreamsFrame> for StreamCtlFrame
impl From<MaxStreamsFrame> for StreamCtlFrame
Source§fn from(v: MaxStreamsFrame) -> StreamCtlFrame
fn from(v: MaxStreamsFrame) -> StreamCtlFrame
Source§impl From<ResetStreamFrame> for StreamCtlFrame
impl From<ResetStreamFrame> for StreamCtlFrame
Source§fn from(v: ResetStreamFrame) -> StreamCtlFrame
fn from(v: ResetStreamFrame) -> StreamCtlFrame
Source§impl From<StopSendingFrame> for StreamCtlFrame
impl From<StopSendingFrame> for StreamCtlFrame
Source§fn from(v: StopSendingFrame) -> StreamCtlFrame
fn from(v: StopSendingFrame) -> StreamCtlFrame
Source§impl From<StreamCtlFrame> for ReliableFrame
impl From<StreamCtlFrame> for ReliableFrame
Source§fn from(v: StreamCtlFrame) -> ReliableFrame
fn from(v: StreamCtlFrame) -> ReliableFrame
Source§impl<D> From<StreamCtlFrame> for Frame<D>
impl<D> From<StreamCtlFrame> for Frame<D>
Source§fn from(value: StreamCtlFrame) -> Self
fn from(value: StreamCtlFrame) -> Self
Source§impl From<StreamDataBlockedFrame> for StreamCtlFrame
impl From<StreamDataBlockedFrame> for StreamCtlFrame
Source§fn from(v: StreamDataBlockedFrame) -> StreamCtlFrame
fn from(v: StreamDataBlockedFrame) -> StreamCtlFrame
Source§impl From<StreamsBlockedFrame> for StreamCtlFrame
impl From<StreamsBlockedFrame> for StreamCtlFrame
Source§fn from(v: StreamsBlockedFrame) -> StreamCtlFrame
fn from(v: StreamsBlockedFrame) -> StreamCtlFrame
Source§impl GetFrameType for StreamCtlFrame
impl GetFrameType for StreamCtlFrame
Source§fn frame_type(&self) -> FrameType
fn frame_type(&self) -> FrameType
Return the type of frame