Struct httpbis::solicit::frame::ping::PingFrame
[−]
[src]
pub struct PingFrame { /* fields omitted */ }
The struct represents the PINg
HTTP/2 frame.
Methods
impl PingFrame
[src]
fn new() -> Self
Create a new PING
frame
fn new_ack(opaque_data: u64) -> Self
Create a new PING frame with ACK set
fn with_data(opaque_data: u64) -> Self
Create a new PING
frame with the given opaque_data
fn is_ack(&self) -> bool
fn opaque_data(&self) -> u64
Trait Implementations
impl Clone for PingFrame
[src]
fn clone(&self) -> PingFrame
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for PingFrame
[src]
impl PartialEq for PingFrame
[src]
fn eq(&self, __arg_0: &PingFrame) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &PingFrame) -> bool
This method tests for !=
.
impl Frame for PingFrame
[src]
type FlagType = PingFlag
The type that represents the flags that the particular Frame
can take. This makes sure that only valid Flag
s are used with each Frame
. Read more
fn from_raw(raw_frame: &RawFrame) -> Option<Self>
Creates a new Frame
from the given RawFrame
(i.e. header and payload), if possible. Read more
fn is_set(&self, flag: PingFlag) -> bool
Tests if the given flag is set for the frame.
fn get_stream_id(&self) -> StreamId
Returns the StreamId
of the stream to which the frame is associated
fn get_header(&self) -> FrameHeader
Returns a FrameHeader
based on the current state of the Frame
.
impl<'a> FrameIR for PingFrame
[src]
fn serialize_into<B: FrameBuilder>(self, builder: &mut B) -> Result<()>
Write out the on-the-wire representation of the frame into the given FrameBuilder
.
fn serialize_into_vec(self) -> Vec<u8> where
Self: Sized,
Self: Sized,