#[repr(u8)]pub enum ErrorCode {
Show 15 variants
Cancel = 8,
Compression = 9,
Connect = 10,
EnhanceYourCalm = 11,
FlowControl = 3,
FrameSize = 6,
Http11Required = 13,
InadequateSecurity = 12,
NoError = 0,
Internal = 2,
Protocol = 1,
RefusedStream = 7,
SettingsTimeout = 4,
StreamClosed = 5,
Unsupported = 255,
}
Expand description
Error codes.
Variants§
Cancel = 8
Cancel error.
Compression = 9
Compression error.
Connect = 10
Connect error.
EnhanceYourCalm = 11
Enhance your calm error.
FlowControl = 3
Flow control error.
FrameSize = 6
Frame size error.
Http11Required = 13
HTTP/1.1 required error.
InadequateSecurity = 12
Inadequate security error.
NoError = 0
No error.
Internal = 2
Internal error.
Protocol = 1
Protocol error.
RefusedStream = 7
Refused stream error.
SettingsTimeout = 4
Settings timeout error.
StreamClosed = 5
Stream closed error.
Unsupported = 255
Unsupported error.
Implementations§
Source§impl ErrorCode
impl ErrorCode
Sourcepub fn is_compression(&self) -> bool
pub fn is_compression(&self) -> bool
Indicates that this an ErrorCode::Compression
.
Sourcepub fn is_connect(&self) -> bool
pub fn is_connect(&self) -> bool
Indicates that this an ErrorCode::Connect
.
Sourcepub fn is_enhance_your_calm(&self) -> bool
pub fn is_enhance_your_calm(&self) -> bool
Indicates that this an ErrorCode::EnhanceYourCalm
.
Sourcepub fn is_flow_control(&self) -> bool
pub fn is_flow_control(&self) -> bool
Indicates that this an ErrorCode::FlowControl
.
Sourcepub fn is_frame_size(&self) -> bool
pub fn is_frame_size(&self) -> bool
Indicates that this an ErrorCode::FrameSize
.
Sourcepub fn is_http_1_1_required(&self) -> bool
pub fn is_http_1_1_required(&self) -> bool
Indicates that this an ErrorCode::Http11Required
.
Sourcepub fn is_inadequate_security(&self) -> bool
pub fn is_inadequate_security(&self) -> bool
Indicates that this an ErrorCode::InadequateSecurity
.
Sourcepub fn is_internal(&self) -> bool
pub fn is_internal(&self) -> bool
Indicates that this an ErrorCode::Internal
.
Sourcepub fn is_no_error(&self) -> bool
pub fn is_no_error(&self) -> bool
Indicates that this an ErrorCode::NoError
.
Sourcepub fn is_protocol(&self) -> bool
pub fn is_protocol(&self) -> bool
Indicates that this an ErrorCode::Protocol
.
Sourcepub fn is_refused_stream(&self) -> bool
pub fn is_refused_stream(&self) -> bool
Indicates that this an ErrorCode::RefusedStream
.
Sourcepub fn is_settings_timeout(&self) -> bool
pub fn is_settings_timeout(&self) -> bool
Indicates that this an ErrorCode::SettingsTimeout
.
Sourcepub fn is_stream_closed(&self) -> bool
pub fn is_stream_closed(&self) -> bool
Indicates that this an ErrorCode::StreamClosed
.