#[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
impl Clone for ParserState
Source§fn clone(&self) -> ParserState
fn clone(&self) -> ParserState
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more