#[repr(C)]pub struct ResetStreamFrame {
pub stream_id: u64,
pub application_protocol_error_code: u64,
pub final_size: u64,
}
Expand description
An endpoint uses a RESET_STREAM frame (type=0x04) to abruptly terminate the sending part of a stream.
After sending a RESET_STREAM, an endpoint ceases transmission and retransmission of STREAM frames on the identified stream. A receiver of RESET_STREAM can discard any data that it already received on that stream.An endpoint that receives a RESET_STREAM frame for a send-only stream MUST terminate the connection with error STREAM_STATE_ERROR.
Fields§
§stream_id: u64
A variable-length integer encoding of the Stream ID of the stream being terminated.
application_protocol_error_code: u64
A variable-length integer containing the application protocol error code that indicates why the stream is being closed.
final_size: u64
A variable-length integer indicating the final size of the stream by the RESET_STREAM sender, in unit of bytes.
Trait Implementations§
Source§impl Clone for ResetStreamFrame
impl Clone for ResetStreamFrame
Source§fn clone(&self) -> ResetStreamFrame
fn clone(&self) -> ResetStreamFrame
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ResetStreamFrame
impl Debug for ResetStreamFrame
Source§impl<'de> Deserialize<'de> for ResetStreamFrame
impl<'de> Deserialize<'de> for ResetStreamFrame
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ResetStreamFrame, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ResetStreamFrame, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for ResetStreamFrame
impl PartialEq for ResetStreamFrame
Source§impl PartialOrd for ResetStreamFrame
impl PartialOrd for ResetStreamFrame
Source§impl Serialize for ResetStreamFrame
impl Serialize for ResetStreamFrame
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
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> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out
indicating that a T
is niched.