pub(crate) struct GoingAway {
last_processed_id: StreamId,
reason: Reason,
}
Expand description
Keeps a memory of any GOAWAY frames we’ve sent before.
This looks very similar to a frame::GoAway
, but is a separate type. Why?
Mostly for documentation purposes. This type is to record status. If it
were a frame::GoAway
, it might appear like we eventually wanted to
serialize it. We only want to be able to look up these fields at a
later time.
Fields§
§last_processed_id: StreamId
Stores the highest stream ID of a GOAWAY that has been sent.
It’s illegal to send a subsequent GOAWAY with a higher ID.
reason: Reason
Records the error code of any GOAWAY frame sent.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GoingAway
impl RefUnwindSafe for GoingAway
impl Send for GoingAway
impl Sync for GoingAway
impl Unpin for GoingAway
impl UnwindSafe for GoingAway
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