Enum Reason
pub enum Reason<E> {
Error(Error<E>),
ProtocolError(ConnectionError),
GoAway(GoAway),
PeerGone(PeerGone),
}Expand description
Reason a connection is disconnecting.
Variants§
Error(Error<E>)
Application-level request service error.
ProtocolError(ConnectionError)
HTTP/2 connection protocol error.
GoAway(GoAway)
A remote GOAWAY frame was received.
PeerGone(PeerGone)
The peer disconnected.
Implementations§
§impl<E> Reason<E>
impl<E> Reason<E>
pub fn ack(self) -> ControlAck
pub fn ack(self) -> ControlAck
Returns the default acknowledgment for this reason.
Trait Implementations§
Auto Trait Implementations§
impl<E> !RefUnwindSafe for Reason<E>
impl<E> !UnwindSafe for Reason<E>
impl<E> Freeze for Reason<E>where
E: Freeze,
impl<E> Send for Reason<E>where
E: Send,
impl<E> Sync for Reason<E>where
E: Sync,
impl<E> Unpin for Reason<E>where
E: Unpin,
impl<E> UnsafeUnpin for Reason<E>where
E: UnsafeUnpin,
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