pub struct NewConnectionIdFrame { /* private fields */ }
Expand description
NEW_CONNECTION_ID frame.
NEW_CONNECTION_ID Frame {
Type (i) = 0x18,
Sequence Number (i),
Retire Prior To (i),
Length (8),
Connection ID (8..160),
Stateless Reset Token (128),
}
See NEW_CONNECTION_ID Frames of QUIC for more details.
Implementations§
Source§impl NewConnectionIdFrame
impl NewConnectionIdFrame
Sourcepub fn new(cid: ConnectionId, sequence: VarInt, retire_prior_to: VarInt) -> Self
pub fn new(cid: ConnectionId, sequence: VarInt, retire_prior_to: VarInt) -> Self
Create a new NewConnectionIdFrame
.
Sourcepub fn retire_prior_to(&self) -> u64
pub fn retire_prior_to(&self) -> u64
Return the retire prior to of the frame.
Sourcepub fn connection_id(&self) -> &ConnectionId
pub fn connection_id(&self) -> &ConnectionId
Return the connection ID of the frame.
Sourcepub fn reset_token(&self) -> &ResetToken
pub fn reset_token(&self) -> &ResetToken
Return the reset token of the frame.
Trait Implementations§
Source§impl Clone for NewConnectionIdFrame
impl Clone for NewConnectionIdFrame
Source§fn clone(&self) -> NewConnectionIdFrame
fn clone(&self) -> NewConnectionIdFrame
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for NewConnectionIdFrame
impl Debug for NewConnectionIdFrame
Source§impl EncodeFrame for NewConnectionIdFrame
impl EncodeFrame for NewConnectionIdFrame
Source§fn max_encoding_size(&self) -> usize
fn max_encoding_size(&self) -> usize
Return the max number of bytes needed to encode this value Read more
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<NewConnectionIdFrame> for ReliableFrame
impl From<NewConnectionIdFrame> for ReliableFrame
Source§fn from(v: NewConnectionIdFrame) -> ReliableFrame
fn from(v: NewConnectionIdFrame) -> ReliableFrame
Converts to this type from the input type.
Source§impl GetFrameType for NewConnectionIdFrame
impl GetFrameType for NewConnectionIdFrame
Source§fn frame_type(&self) -> FrameType
fn frame_type(&self) -> FrameType
Return the type of frame
Source§impl PartialEq for NewConnectionIdFrame
impl PartialEq for NewConnectionIdFrame
Source§impl<RETIRED> ReceiveFrame<NewConnectionIdFrame> for ArcRemoteCids<RETIRED>
impl<RETIRED> ReceiveFrame<NewConnectionIdFrame> for ArcRemoteCids<RETIRED>
type Output = Option<ResetToken>
Source§fn recv_frame(
&self,
frame: &NewConnectionIdFrame,
) -> Result<Self::Output, Error>
fn recv_frame( &self, frame: &NewConnectionIdFrame, ) -> Result<Self::Output, Error>
Receive the frames from the peer
Source§impl TryInto<NewConnectionIdFrame> for ReliableFrame
impl TryInto<NewConnectionIdFrame> for ReliableFrame
impl Copy for NewConnectionIdFrame
impl Eq for NewConnectionIdFrame
impl StructuralPartialEq for NewConnectionIdFrame
Auto Trait Implementations§
impl Freeze for NewConnectionIdFrame
impl RefUnwindSafe for NewConnectionIdFrame
impl Send for NewConnectionIdFrame
impl Sync for NewConnectionIdFrame
impl Unpin for NewConnectionIdFrame
impl UnwindSafe for NewConnectionIdFrame
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FrameFeture for Twhere
T: GetFrameType,
impl<T> FrameFeture for Twhere
T: GetFrameType,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
Source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
Source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Source§impl<T> WriteFrame<NewConnectionIdFrame> for Twhere
T: BufMut,
impl<T> WriteFrame<NewConnectionIdFrame> for Twhere
T: BufMut,
Source§fn put_frame(&mut self, frame: &NewConnectionIdFrame)
fn put_frame(&mut self, frame: &NewConnectionIdFrame)
Write a frame to the buffer.