pub struct GoAway { /* private fields */ }
Implementations§
Source§impl GoAway
impl GoAway
pub fn new(reason: Reason) -> Self
pub fn set_last_stream_id(self, id: StreamId) -> Self
pub fn set_data<T>(self, data: T) -> Self
pub fn set_reason(self, error_code: Reason) -> Self
pub fn last_stream_id(&self) -> StreamId
pub fn reason(&self) -> Reason
pub fn data(&self) -> &Bytes
pub fn load(payload: &[u8]) -> Result<GoAway, FrameError>
pub fn encode(&self, dst: &mut BytesMut)
Trait Implementations§
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