pub struct GoAway {
last_stream_id: StreamId,
error_code: Reason,
debug_data: Bytes,
}
Fields§
§last_stream_id: StreamId
§error_code: Reason
§debug_data: Bytes
Implementations§
source§impl GoAway
impl GoAway
pub fn new(last_stream_id: StreamId, reason: Reason) -> Self
pub fn with_debug_data( last_stream_id: StreamId, reason: Reason, debug_data: Bytes, ) -> Self
pub fn last_stream_id(&self) -> StreamId
pub fn reason(&self) -> Reason
pub fn debug_data(&self) -> &Bytes
pub fn load(payload: &[u8]) -> Result<GoAway, Error>
pub fn encode<B: BufMut>(&self, dst: &mut B)
Trait Implementations§
source§impl PartialEq for GoAway
impl PartialEq for GoAway
impl Eq for GoAway
impl StructuralPartialEq for GoAway
Auto Trait Implementations§
impl !Freeze for GoAway
impl RefUnwindSafe for GoAway
impl Send for GoAway
impl Sync for GoAway
impl Unpin for GoAway
impl UnwindSafe for GoAway
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.