pub struct ResetStreamFrame { /* private fields */ }
Expand description
RESET_STREAM frame.
RESET_STREAM Frame {
Type (i) = 0x04,
Stream ID (i),
Application Protocol Error Code (i),
Final Size (i),
}
See RESET_STREAM Frames of QUIC for more details.
Implementations§
Source§impl ResetStreamFrame
impl ResetStreamFrame
Sourcepub fn new(
stream_id: StreamId,
app_error_code: VarInt,
final_size: VarInt,
) -> Self
pub fn new( stream_id: StreamId, app_error_code: VarInt, final_size: VarInt, ) -> Self
Create a new ResetStreamFrame
.
Sourcepub fn app_error_code(&self) -> u64
pub fn app_error_code(&self) -> u64
Return the application protocol error code of the frame.
Sourcepub fn final_size(&self) -> u64
pub fn final_size(&self) -> u64
Return the final size of the frame.
Trait Implementations§
Source§impl Clone for ResetStreamFrame
impl Clone for ResetStreamFrame
Source§fn clone(&self) -> ResetStreamFrame
fn clone(&self) -> ResetStreamFrame
Returns a duplicate 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 ResetStreamFrame
impl Debug for ResetStreamFrame
Source§impl EncodeSize for ResetStreamFrame
impl EncodeSize for ResetStreamFrame
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<&ResetStreamFrame> for ResetStreamError
impl From<&ResetStreamFrame> for ResetStreamError
Source§fn from(frame: &ResetStreamFrame) -> Self
fn from(frame: &ResetStreamFrame) -> Self
Converts to this type from the input type.
Source§impl From<ResetStreamFrame> for StreamCtlFrame
impl From<ResetStreamFrame> for StreamCtlFrame
Source§fn from(v: ResetStreamFrame) -> StreamCtlFrame
fn from(v: ResetStreamFrame) -> StreamCtlFrame
Converts to this type from the input type.
Source§impl GetFrameType for ResetStreamFrame
impl GetFrameType for ResetStreamFrame
Source§fn frame_type(&self) -> FrameType
fn frame_type(&self) -> FrameType
Return the type of frame
Source§impl PartialEq for ResetStreamFrame
impl PartialEq for ResetStreamFrame
Source§impl TryInto<ResetStreamFrame> for StreamCtlFrame
impl TryInto<ResetStreamFrame> for StreamCtlFrame
impl Copy for ResetStreamFrame
impl Eq for ResetStreamFrame
impl StructuralPartialEq for ResetStreamFrame
Auto Trait Implementations§
impl Freeze for ResetStreamFrame
impl RefUnwindSafe for ResetStreamFrame
impl Send for ResetStreamFrame
impl Sync for ResetStreamFrame
impl Unpin for ResetStreamFrame
impl UnwindSafe for ResetStreamFrame
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<ResetStreamFrame> for Twhere
T: BufMut,
impl<T> WriteFrame<ResetStreamFrame> for Twhere
T: BufMut,
Source§fn put_frame(&mut self, frame: &ResetStreamFrame)
fn put_frame(&mut self, frame: &ResetStreamFrame)
Write a frame to the buffer.