pub struct H3Error {
pub code: u64,
pub reason: &'static str,
}Expand description
A connection-level HTTP/3 error; the connection is closed with this code.
Fields§
§code: u64§reason: &'static strImplementations§
Trait Implementations§
impl Copy for H3Error
impl Eq for H3Error
Source§impl Error for H3Error
impl Error for H3Error
1.30.0 · 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()
impl StructuralPartialEq for H3Error
Auto Trait Implementations§
impl Forget for H3Error
impl Freeze for H3Error
impl Move for H3Error
impl RefUnwindSafe for H3Error
impl Send for H3Error
impl Sync for H3Error
impl Unpin for H3Error
impl UnsafeUnpin for H3Error
impl UnwindSafe for H3Error
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