Enum http_box::http2::ErrorCode
[−]
[src]
#[repr(u8)]pub enum ErrorCode { Cancel, Compression, Connect, EnhanceYourCalm, FlowControl, FrameSize, Http11Required, InadequateSecurity, NoError, Internal, Protocol, RefusedStream, SettingsTimeout, StreamClosed, Unsupported, }
Error codes.
Variants
CancelCancel error.
CompressionCompression error.
ConnectConnect error.
EnhanceYourCalmEnhance your calm error.
FlowControlFlow control error.
FrameSizeFrame size error.
Http11RequiredHTTP/1.1 required error.
InadequateSecurityInadequate security error.
NoErrorNo error.
InternalInternal error.
ProtocolProtocol error.
RefusedStreamRefused stream error.
SettingsTimeoutSettings timeout error.
StreamClosedStream closed error.
UnsupportedUnsupported error.
Methods
impl ErrorCode[src]
fn from_u8(byte: u8) -> ErrorCode
Create a new ErrorCode from a u8.
fn as_byte(&self) -> u8
Convert this error code to byte value.
fn is_cancel(&self) -> bool
Indicates that this an ErrorCode::Cancel.
fn is_compression(&self) -> bool
Indicates that this an ErrorCode::Compression.
fn is_connect(&self) -> bool
Indicates that this an ErrorCode::Connect.
fn is_enhance_your_calm(&self) -> bool
Indicates that this an ErrorCode::EnhanceYourCalm.
fn is_flow_control(&self) -> bool
Indicates that this an ErrorCode::FlowControl.
fn is_frame_size(&self) -> bool
Indicates that this an ErrorCode::FrameSize.
fn is_http_1_1_required(&self) -> bool
Indicates that this an ErrorCode::Http11Required.
fn is_inadequate_security(&self) -> bool
Indicates that this an ErrorCode::InadequateSecurity.
fn is_internal(&self) -> bool
Indicates that this an ErrorCode::Internal.
fn is_no_error(&self) -> bool
Indicates that this an ErrorCode::NoError.
fn is_protocol(&self) -> bool
Indicates that this an ErrorCode::Protocol.
fn is_refused_stream(&self) -> bool
Indicates that this an ErrorCode::RefusedStream.
fn is_settings_timeout(&self) -> bool
Indicates that this an ErrorCode::SettingsTimeout.
fn is_stream_closed(&self) -> bool
Indicates that this an ErrorCode::StreamClosed.
Trait Implementations
impl Clone for ErrorCode[src]
fn clone(&self) -> ErrorCode
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more