Enum http2parse::Payload
[−]
[src]
pub enum Payload<'a> { Data { data: &'a [u8], }, Headers { priority: Option<Priority>, block: &'a [u8], }, Priority(Priority), Reset(ErrorCode), Settings(&'a [Setting]), PushPromise { promised: StreamIdentifier, block: &'a [u8], }, Ping(u64), GoAway { last: StreamIdentifier, error: ErrorCode, data: &'a [u8], }, WindowUpdate(SizeIncrement), Continuation(&'a [u8]), Unregistered, }
Variants
Data
Fields
data: &'a [u8] |
Headers
Fields
priority: Option<Priority> | |
block: &'a [u8] |
Priority(Priority)
Reset(ErrorCode)
Settings(&'a [Setting])
PushPromise
Fields
promised: StreamIdentifier | |
block: &'a [u8] |
Ping(u64)
GoAway
Fields
last: StreamIdentifier | |
error: ErrorCode | |
data: &'a [u8] |
WindowUpdate(SizeIncrement)
Continuation(&'a [u8])
Unregistered
Methods
impl<'a> Payload<'a>
[src]
Trait Implementations
impl<'a> Hash for Payload<'a>
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl<'a> Eq for Payload<'a>
[src]
impl<'a> PartialEq for Payload<'a>
[src]
fn eq(&self, __arg_0: &Payload<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Payload<'a>) -> bool
This method tests for !=
.
impl<'a> Debug for Payload<'a>
[src]
impl<'a> Clone for Payload<'a>
[src]
fn clone(&self) -> Payload<'a>
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