ParserState

Enum ParserState 

Source
#[repr(u8)]
pub enum ParserState {
Show 65 variants Dead = 0, FrameLength1 = 1, FrameLength2 = 2, FrameLength3 = 3, FrameType = 4, FrameFlags = 5, FrameStreamId1 = 6, FrameStreamId2 = 7, FrameStreamId3 = 8, FrameStreamId4 = 9, FrameFormatEnd = 10, FramePadding = 11, DataPadLength = 12, DataData = 13, GoAwayStreamId1 = 14, GoAwayStreamId2 = 15, GoAwayStreamId3 = 16, GoAwayStreamId4 = 17, GoAwayErrorCode1 = 18, GoAwayErrorCode2 = 19, GoAwayErrorCode3 = 20, GoAwayErrorCode4 = 21, GoAwayCallback = 22, GoAwayDebugData = 23, HeadersPadLengthWithPriority = 24, HeadersPadLengthWithoutPriority = 25, HeadersStreamId1 = 26, HeadersStreamId2 = 27, HeadersStreamId3 = 28, HeadersStreamId4 = 29, HeadersWeight = 30, HeadersCallback = 31, HeadersFragment = 32, PingData = 33, PriorityStreamId1 = 34, PriorityStreamId2 = 35, PriorityStreamId3 = 36, PriorityStreamId4 = 37, PriorityWeight = 38, PushPromisePadLength = 39, PushPromiseStreamId1 = 40, PushPromiseStreamId2 = 41, PushPromiseStreamId3 = 42, PushPromiseStreamId4 = 43, PushPromiseCallback = 44, RstStreamErrorCode1 = 45, RstStreamErrorCode2 = 46, RstStreamErrorCode3 = 47, RstStreamErrorCode4 = 48, RstStreamCallback = 49, SettingsId1 = 50, SettingsId2 = 51, SettingsValue1 = 52, SettingsValue2 = 53, SettingsValue3 = 54, SettingsValue4 = 55, SettingsCallback = 56, UnsupportedPadLength = 57, UnsupportedData = 58, WindowUpdateIncrement1 = 59, WindowUpdateIncrement2 = 60, WindowUpdateIncrement3 = 61, WindowUpdateIncrement4 = 62, WindowUpdateCallback = 63, Finished = 64,
}
Expand description

Parser states.

Variants§

§

Dead = 0

An error was returned from a call to Parser::parse().

§

FrameLength1 = 1

Parsing frame length first byte.

§

FrameLength2 = 2

Parsing frame length second byte.

§

FrameLength3 = 3

Parsing frame length third byte.

§

FrameType = 4

Parsing frame type.

§

FrameFlags = 5

Parsing frame flags.

§

FrameStreamId1 = 6

Parsing frame stream identifier first byte.

§

FrameStreamId2 = 7

Parsing frame stream identifier second byte.

§

FrameStreamId3 = 8

Parsing frame stream identifier third byte.

§

FrameStreamId4 = 9

Parsing frame stream identifier fourth byte.

§

FrameFormatEnd = 10

Frame format parsing finished.

§

FramePadding = 11

Parsing end-of-frame padding.

§

DataPadLength = 12

Parsing data pad length.

§

DataData = 13

Parsing data.

§

GoAwayStreamId1 = 14

Parsing go away stream identifier first byte.

§

GoAwayStreamId2 = 15

Parsing go away stream identifier second byte.

§

GoAwayStreamId3 = 16

Parsing go away stream identifier third byte.

§

GoAwayStreamId4 = 17

Parsing go away stream identifier fourth byte.

§

GoAwayErrorCode1 = 18

Parsing go away error code first byte.

§

GoAwayErrorCode2 = 19

Parsing go away error code second byte.

§

GoAwayErrorCode3 = 20

Parsing go away error code third byte.

§

GoAwayErrorCode4 = 21

Parsing go away error code fourth byte.

§

GoAwayCallback = 22

Executing go away callback.

§

GoAwayDebugData = 23

Parsing go away debug data.

§

HeadersPadLengthWithPriority = 24

Parsing headers pad length with priority flag.

§

HeadersPadLengthWithoutPriority = 25

Parsing headers pad length without priority flag.

§

HeadersStreamId1 = 26

Parsing headers stream identifier first byte.

§

HeadersStreamId2 = 27

Parsing headers stream identifier second byte.

§

HeadersStreamId3 = 28

Parsing headers stream identifier third byte.

§

HeadersStreamId4 = 29

Parsing headers stream identifier fourth byte.

§

HeadersWeight = 30

Parsing headers weight.

§

HeadersCallback = 31

Executing headers callback.

§

HeadersFragment = 32

Parsing headers fragment.

§

PingData = 33

Parsing ping data.

§

PriorityStreamId1 = 34

Parsing priority stream identifier first byte.

§

PriorityStreamId2 = 35

Parsing priority stream identifier second byte.

§

PriorityStreamId3 = 36

Parsing priority stream identifier third byte.

§

PriorityStreamId4 = 37

Parsing priority stream identifier fourth byte.

§

PriorityWeight = 38

Parsing priority weight.

§

PushPromisePadLength = 39

Parsing push promise pad length.

§

PushPromiseStreamId1 = 40

Parsing push promise stream identifier first byte.

§

PushPromiseStreamId2 = 41

Parsing push promise stream identifier second byte.

§

PushPromiseStreamId3 = 42

Parsing push promise stream identifier third byte.

§

PushPromiseStreamId4 = 43

Parsing push promise stream identifier fourth byte.

§

PushPromiseCallback = 44

Executing the push promise callback.

§

RstStreamErrorCode1 = 45

Parsing rst stream error code first byte.

§

RstStreamErrorCode2 = 46

Parsing rst stream error code second byte.

§

RstStreamErrorCode3 = 47

Parsing rst stream error code third byte.

§

RstStreamErrorCode4 = 48

Parsing rst stream error code fourth byte.

§

RstStreamCallback = 49

Executing rst stream callback.

§

SettingsId1 = 50

Parsing settings identifier first byte.

§

SettingsId2 = 51

Parsing settings identifier second byte.

§

SettingsValue1 = 52

Parsing settings value first byte.

§

SettingsValue2 = 53

Parsing settings value second byte.

§

SettingsValue3 = 54

Parsing settings value third byte.

§

SettingsValue4 = 55

Parsing settings value fourth byte.

§

SettingsCallback = 56

Executing settings callback.

§

UnsupportedPadLength = 57

Parsing unsupported pad length.

§

UnsupportedData = 58

Parsing unsupported data.

§

WindowUpdateIncrement1 = 59

Parsing window update increment first byte.

§

WindowUpdateIncrement2 = 60

Parsing window update increment second byte.

§

WindowUpdateIncrement3 = 61

Parsing window update increment third byte.

§

WindowUpdateIncrement4 = 62

Parsing window update increment fourth byte.

§

WindowUpdateCallback = 63

Executing window update callback.

§

Finished = 64

Parsing entire message has finished.

Trait Implementations§

Source§

impl Clone for ParserState

Source§

fn clone(&self) -> ParserState

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ParserState

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for ParserState

Source§

fn eq(&self, other: &ParserState) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for ParserState

Source§

impl StructuralPartialEq for ParserState

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.