pub enum Frame<'a> {
Show 20 variants
Padding,
Ping,
Ack {
ranges: AckRanges<'a>,
delay: u64,
ecn: Option<[u64; 3]>,
},
ResetStream {
id: u64,
code: u64,
final_size: u64,
},
StopSending {
id: u64,
code: u64,
},
Crypto {
offset: u64,
data: &'a [u8],
},
NewToken {
token: &'a [u8],
},
Stream {
id: u64,
offset: u64,
data: &'a [u8],
fin: bool,
},
MaxData(u64),
MaxStreamData {
id: u64,
max: u64,
},
MaxStreams {
bidi: bool,
max: u64,
},
DataBlocked(u64),
StreamDataBlocked {
id: u64,
limit: u64,
},
StreamsBlocked {
bidi: bool,
limit: u64,
},
NewConnectionId {
seq: u64,
retire_prior_to: u64,
cid: &'a [u8],
reset_token: [u8; 16],
},
RetireConnectionId {
seq: u64,
},
PathChallenge([u8; 8]),
PathResponse([u8; 8]),
ConnectionClose {
code: u64,
frame_type: Option<u64>,
reason: &'a [u8],
},
HandshakeDone,
}Variants§
Padding
Ping
Ack
ResetStream
StopSending
Crypto
NewToken
Stream
MaxData(u64)
MaxStreamData
MaxStreams
DataBlocked(u64)
StreamDataBlocked
StreamsBlocked
NewConnectionId
RetireConnectionId
PathChallenge([u8; 8])
PathResponse([u8; 8])
ConnectionClose
HandshakeDone
Implementations§
Source§impl Frame<'_>
impl Frame<'_>
Sourcepub fn is_ack_eliciting(&self) -> bool
pub fn is_ack_eliciting(&self) -> bool
True for frames that require an acknowledgement (RFC 9002 §2).
Sourcepub fn is_probing(&self) -> bool
pub fn is_probing(&self) -> bool
Probing frames (RFC 9000 §9.1).
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for Frame<'a>
impl<'a> Freeze for Frame<'a>
impl<'a> Move for Frame<'a>
impl<'a> RefUnwindSafe for Frame<'a>
impl<'a> Send for Frame<'a>
impl<'a> Sync for Frame<'a>
impl<'a> Unpin for Frame<'a>
impl<'a> UnsafeUnpin for Frame<'a>
impl<'a> UnwindSafe for Frame<'a>
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