Enum ntex_h2::ConnectionError
source · [−]pub enum ConnectionError {
GoAway(Reason),
UnknownStream(&'static str),
Encoder(EncoderError),
Decoder(FrameError),
StreamClosed(StreamId),
InvalidStreamId,
UnexpectedSettingsAck,
MissingPseudo(&'static str),
UnexpectedPseudo(&'static str),
ZeroWindowUpdateValue,
WindowValueOverflow,
KeepaliveTimeout,
}Variants
GoAway(Reason)
UnknownStream(&'static str)
Encoder(EncoderError)
Decoder(FrameError)
StreamClosed(StreamId)
InvalidStreamId
An invalid stream identifier was provided
UnexpectedSettingsAck
MissingPseudo(&'static str)
Missing pseudo header
UnexpectedPseudo(&'static str)
Missing pseudo header
ZeroWindowUpdateValue
Window update value is zero
WindowValueOverflow
KeepaliveTimeout
Keep-alive timeout
Implementations
Trait Implementations
sourceimpl Clone for ConnectionError
impl Clone for ConnectionError
sourcefn clone(&self) -> ConnectionError
fn clone(&self) -> ConnectionError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ConnectionError
impl Debug for ConnectionError
sourceimpl Display for ConnectionError
impl Display for ConnectionError
sourceimpl Error for ConnectionError
impl Error for ConnectionError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<ConnectionError> for ClientError
impl From<ConnectionError> for ClientError
sourcefn from(err: ConnectionError) -> Self
fn from(err: ConnectionError) -> Self
Converts to this type from the input type.
sourceimpl From<ConnectionError> for OperationError
impl From<ConnectionError> for OperationError
sourcefn from(source: ConnectionError) -> Self
fn from(source: ConnectionError) -> Self
Converts to this type from the input type.
sourceimpl From<EncoderError> for ConnectionError
impl From<EncoderError> for ConnectionError
sourcefn from(source: EncoderError) -> Self
fn from(source: EncoderError) -> Self
Converts to this type from the input type.
sourceimpl From<FrameError> for ConnectionError
impl From<FrameError> for ConnectionError
sourcefn from(source: FrameError) -> Self
fn from(source: FrameError) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<ConnectionError> for ConnectionError
impl PartialEq<ConnectionError> for ConnectionError
sourcefn eq(&self, other: &ConnectionError) -> bool
fn eq(&self, other: &ConnectionError) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &ConnectionError) -> bool
fn ne(&self, other: &ConnectionError) -> bool
This method tests for !=.
impl Copy for ConnectionError
impl Eq for ConnectionError
impl StructuralEq for ConnectionError
impl StructuralPartialEq for ConnectionError
Auto Trait Implementations
impl RefUnwindSafe for ConnectionError
impl Send for ConnectionError
impl Sync for ConnectionError
impl Unpin for ConnectionError
impl UnwindSafe for ConnectionError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more