Struct ConnectionError
pub struct ConnectionError { /* private fields */ }Expand description
HTTP/2 connection protocol error control event.
Implementations§
§impl ConnectionError
impl ConnectionError
pub fn new(err: Error<ConnectionError>) -> ConnectionError
pub fn new(err: Error<ConnectionError>) -> ConnectionError
Creates a protocol error event.
pub fn reason(self, reason: Reason) -> ConnectionError
pub fn reason(self, reason: Reason) -> ConnectionError
Overrides the reason code for the generated GOAWAY frame.
pub fn ack(self) -> ControlAck
pub fn ack(self) -> ControlAck
Acknowledges the error and returns a GOAWAY response.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ConnectionError
impl !UnwindSafe for ConnectionError
impl Freeze for ConnectionError
impl Send for ConnectionError
impl Sync for ConnectionError
impl Unpin for ConnectionError
impl UnsafeUnpin for ConnectionError
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