pub struct GoAway { /* private fields */ }Implementations
sourceimpl 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 where
Bytes: From<T>,
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 StructuralEq for GoAway
impl StructuralPartialEq for GoAway
Auto Trait Implementations
impl !RefUnwindSafe for GoAway
impl Send for GoAway
impl Sync for GoAway
impl Unpin for GoAway
impl !UnwindSafe for GoAway
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more