pub enum ReliableFrame {
NewToken(NewTokenFrame),
MaxData(MaxDataFrame),
DataBlocked(DataBlockedFrame),
NewConnectionId(NewConnectionIdFrame),
RetireConnectionId(RetireConnectionIdFrame),
HandshakeDone(HandshakeDoneFrame),
Stream(StreamCtlFrame),
}
Expand description
Sum type of all the reliable frames.
Variants§
NewToken(NewTokenFrame)
NEW_TOKEN frame, see NewTokenFrame
.
MaxData(MaxDataFrame)
MAX_DATA frame, see MaxDataFrame
.
DataBlocked(DataBlockedFrame)
DATA_BLOCKED frame, see DataBlockedFrame
.
NewConnectionId(NewConnectionIdFrame)
NEW_CONNECTION_ID frame, see NewConnectionIdFrame
.
RetireConnectionId(RetireConnectionIdFrame)
RETIRE_CONNECTION_ID frame, see RetireConnectionIdFrame
.
HandshakeDone(HandshakeDoneFrame)
HANDSHAKE_DONE frame, see HandshakeDoneFrame
.
Stream(StreamCtlFrame)
STREAM control frame, see StreamCtlFrame
.
Trait Implementations§
Source§impl Clone for ReliableFrame
impl Clone for ReliableFrame
Source§fn clone(&self) -> ReliableFrame
fn clone(&self) -> ReliableFrame
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ReliableFrame
impl Debug for ReliableFrame
Source§impl EncodeSize for ReliableFrame
impl EncodeSize for ReliableFrame
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
Source§impl From<DataBlockedFrame> for ReliableFrame
impl From<DataBlockedFrame> for ReliableFrame
Source§fn from(v: DataBlockedFrame) -> ReliableFrame
fn from(v: DataBlockedFrame) -> ReliableFrame
Source§impl From<HandshakeDoneFrame> for ReliableFrame
impl From<HandshakeDoneFrame> for ReliableFrame
Source§fn from(v: HandshakeDoneFrame) -> ReliableFrame
fn from(v: HandshakeDoneFrame) -> ReliableFrame
Source§impl From<MaxDataFrame> for ReliableFrame
impl From<MaxDataFrame> for ReliableFrame
Source§fn from(v: MaxDataFrame) -> ReliableFrame
fn from(v: MaxDataFrame) -> ReliableFrame
Source§impl From<NewConnectionIdFrame> for ReliableFrame
impl From<NewConnectionIdFrame> for ReliableFrame
Source§fn from(v: NewConnectionIdFrame) -> ReliableFrame
fn from(v: NewConnectionIdFrame) -> ReliableFrame
Source§impl From<NewTokenFrame> for ReliableFrame
impl From<NewTokenFrame> for ReliableFrame
Source§fn from(v: NewTokenFrame) -> ReliableFrame
fn from(v: NewTokenFrame) -> ReliableFrame
Source§impl From<ReliableFrame> for Frame
impl From<ReliableFrame> for Frame
Source§fn from(frame: ReliableFrame) -> Self
fn from(frame: ReliableFrame) -> Self
Source§impl From<RetireConnectionIdFrame> for ReliableFrame
impl From<RetireConnectionIdFrame> for ReliableFrame
Source§fn from(v: RetireConnectionIdFrame) -> ReliableFrame
fn from(v: RetireConnectionIdFrame) -> ReliableFrame
Source§impl From<StreamCtlFrame> for ReliableFrame
impl From<StreamCtlFrame> for ReliableFrame
Source§fn from(v: StreamCtlFrame) -> ReliableFrame
fn from(v: StreamCtlFrame) -> ReliableFrame
Source§impl GetFrameType for ReliableFrame
impl GetFrameType for ReliableFrame
Source§fn frame_type(&self) -> FrameType
fn frame_type(&self) -> FrameType
Return the type of frame