pub enum Frame {
Show 16 variants
Padding(PaddingFrame),
Ping(PingFrame),
Ack(AckFrame),
Close(ConnectionCloseFrame),
NewToken(NewTokenFrame),
MaxData(MaxDataFrame),
DataBlocked(DataBlockedFrame),
NewConnectionId(NewConnectionIdFrame),
RetireConnectionId(RetireConnectionIdFrame),
HandshakeDone(HandshakeDoneFrame),
Challenge(PathChallengeFrame),
Response(PathResponseFrame),
StreamCtl(StreamCtlFrame),
Stream(StreamFrame, Bytes),
Crypto(CryptoFrame, Bytes),
Datagram(DatagramFrame, Bytes),
}
Expand description
Sum type of all the frames.
The data frames’ body are stored in the second field.
Variants§
Padding(PaddingFrame)
PADDING frame, see PaddingFrame
.
Ping(PingFrame)
PING frame, see PingFrame
.
Ack(AckFrame)
ACK frame, see AckFrame
.
Close(ConnectionCloseFrame)
CONNECTION_CLOSE frame, see ConnectionCloseFrame
.
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
.
Challenge(PathChallengeFrame)
PATH_CHALLENGE frame, see PathChallengeFrame
.
Response(PathResponseFrame)
PATH_RESPONSE frame, see PathResponseFrame
.
StreamCtl(StreamCtlFrame)
Stream control frame, see StreamCtlFrame
.
Stream(StreamFrame, Bytes)
STREAM frame and its data, see StreamFrame
.
Crypto(CryptoFrame, Bytes)
CRYPTO frame and its data, see CryptoFrame
.
Datagram(DatagramFrame, Bytes)
DATAGRAM frame and its data, see DatagramFrame
.
Trait Implementations§
Source§impl From<ReliableFrame> for Frame
impl From<ReliableFrame> for Frame
Source§fn from(frame: ReliableFrame) -> Self
fn from(frame: ReliableFrame) -> Self
Converts to this type from the input type.
impl Eq for Frame
impl StructuralPartialEq for Frame
Auto Trait Implementations§
impl !Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnwindSafe for Frame
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