pub struct H2Error {
pub reason: Reason,
pub message: &'static str,
}Available on crate feature
h2 only.Expand description
An HTTP/2 protocol error: a rule violation with the connection or stream error code to report, and a human-readable description.
Fields§
§reason: Reason§message: &'static strImplementations§
Trait Implementations§
impl Eq for H2Error
impl StructuralPartialEq for H2Error
Auto Trait Implementations§
impl Freeze for H2Error
impl RefUnwindSafe for H2Error
impl Send for H2Error
impl Sync for H2Error
impl Unpin for H2Error
impl UnsafeUnpin for H2Error
impl UnwindSafe for H2Error
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