pub enum MaxStreamsFrame {
Bi(VarInt),
Uni(VarInt),
}
Expand description
MAX_STREAMS frame.
MAX_STREAMS Frame {
Type (i) = 0x12..0x13,
Maximum Streams (i),
}
See MAX_STREAMS Frames of QUIC for more details.
Variants§
Implementations§
Trait Implementations§
Source§impl BeFrame for MaxStreamsFrame
impl BeFrame for MaxStreamsFrame
Source§fn frame_type(&self) -> FrameType
fn frame_type(&self) -> FrameType
Return the type of frame
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 Clone for MaxStreamsFrame
impl Clone for MaxStreamsFrame
Source§fn clone(&self) -> MaxStreamsFrame
fn clone(&self) -> MaxStreamsFrame
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 MaxStreamsFrame
impl Debug for MaxStreamsFrame
Source§impl From<MaxStreamsFrame> for StreamCtlFrame
impl From<MaxStreamsFrame> for StreamCtlFrame
Source§fn from(v: MaxStreamsFrame) -> StreamCtlFrame
fn from(v: MaxStreamsFrame) -> StreamCtlFrame
Converts to this type from the input type.
Source§impl PartialEq for MaxStreamsFrame
impl PartialEq for MaxStreamsFrame
Source§impl<BLOCKED> ReceiveFrame<MaxStreamsFrame> for ArcLocalStreamIds<BLOCKED>
impl<BLOCKED> ReceiveFrame<MaxStreamsFrame> for ArcLocalStreamIds<BLOCKED>
Source§impl TryInto<MaxStreamsFrame> for StreamCtlFrame
impl TryInto<MaxStreamsFrame> for StreamCtlFrame
impl Copy for MaxStreamsFrame
impl Eq for MaxStreamsFrame
impl StructuralPartialEq for MaxStreamsFrame
Auto Trait Implementations§
impl Freeze for MaxStreamsFrame
impl RefUnwindSafe for MaxStreamsFrame
impl Send for MaxStreamsFrame
impl Sync for MaxStreamsFrame
impl Unpin for MaxStreamsFrame
impl UnwindSafe for MaxStreamsFrame
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> WriteFrame<MaxStreamsFrame> for Twhere
T: BufMut,
impl<T> WriteFrame<MaxStreamsFrame> for Twhere
T: BufMut,
Source§fn put_frame(&mut self, frame: &MaxStreamsFrame)
fn put_frame(&mut self, frame: &MaxStreamsFrame)
Write a frame to the buffer.