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(&'a [u8]),
}

Variants

Fields of Data

Fields of Headers

Fields of PushPromise

Fields of GoAway

Methods

impl<'a> Payload<'a>
[src]

How many bytes this Payload would be encoded.

Trait Implementations

impl<'a> Copy for Payload<'a>
[src]

impl<'a> Clone for Payload<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> Debug for Payload<'a>
[src]

Formats the value using the given formatter.

impl<'a> PartialEq for Payload<'a>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a> Eq for Payload<'a>
[src]

impl<'a> Hash for Payload<'a>
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more