#[repr(u8)]pub enum ErrorCode {
Show 15 variants
Cancel,
Compression,
Connect,
EnhanceYourCalm,
FlowControl,
FrameSize,
Http11Required,
InadequateSecurity,
NoError,
Internal,
Protocol,
RefusedStream,
SettingsTimeout,
StreamClosed,
Unsupported,
}
Expand description
Error codes.
Variants§
Cancel
Cancel error.
Compression
Compression error.
Connect
Connect error.
EnhanceYourCalm
Enhance your calm error.
FlowControl
Flow control error.
FrameSize
Frame size error.
Http11Required
HTTP/1.1 required error.
InadequateSecurity
Inadequate security error.
NoError
No error.
Internal
Internal error.
Protocol
Protocol error.
RefusedStream
Refused stream error.
SettingsTimeout
Settings timeout error.
StreamClosed
Stream closed error.
Unsupported
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
.