pub struct GoAway {
pub flags: u8,
pub code: u16,
pub payload: Vec<u8>,
}
Fields§
§flags: u8
§code: u16
§payload: Vec<u8>
Trait Implementations§
Source§impl Frame for GoAway
impl Frame for GoAway
Source§const HEADER_SIZE_IN_BYTES: usize = 8usize
const HEADER_SIZE_IN_BYTES: usize = 8usize
Header size in bytes, including the payload size field.
Source§fn put_header(&self, dst: &mut BytesMut)
fn put_header(&self, dst: &mut BytesMut)
Put the header bytes into the destination buffer. Space is already reserved. Do not
put the payload size, that will be handled for you based on what is returned by
Frame::payload()
Source§fn read_payload_size(buf: &mut BytesMut) -> u32
fn read_payload_size(buf: &mut BytesMut) -> u32
Read the payload size from the buffer.
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