pub enum Http2Error {
Io(Error),
Protocol(&'static str),
Hpack(HpackError),
}Variants§
Trait Implementations§
Source§impl Debug for Http2Error
impl Debug for Http2Error
Source§impl Display for Http2Error
impl Display for Http2Error
Source§impl Error for Http2Error
impl Error for Http2Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error> for Http2Error
impl From<Error> for Http2Error
Source§impl From<HpackError> for Http2Error
impl From<HpackError> for Http2Error
Source§fn from(e: HpackError) -> Self
fn from(e: HpackError) -> Self
Converts to this type from the input type.
Source§impl From<Http2Error> for ServerError
impl From<Http2Error> for ServerError
Source§fn from(e: Http2Error) -> Self
fn from(e: Http2Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Http2Error
impl !RefUnwindSafe for Http2Error
impl Send for Http2Error
impl Sync for Http2Error
impl Unpin for Http2Error
impl !UnwindSafe for Http2Error
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).